Try this:

https://retropie.org.uk/docs/Playstation-1/#m3u-playlist-for-multi-disc-games