Music-Player icon indicating copy to clipboard operation
Music-Player copied to clipboard

[CRASH] M3u playlists

Open ildar opened this issue 7 years ago • 2 comments

Opening any m3u playlist crashes the app

ildar avatar Aug 12 '18 05:08 ildar

Hello! Hmmm, strange error, but I will try to fix it!

Thanks!

MaxFour avatar Sep 05 '18 14:09 MaxFour

I have it working here… Maybe check that the paths in the M3U file are correct?

I wrote a Python script to generate my M3U files after consulting Wikipedia for a reference on how they work, so they have the following characteristics:

  • Files are UTF-8 text with DOS-style line endings (carriage return + line feed)
  • First line is #EXTM3U
  • Second line is #PLAYLIST:${name_of_playlist}
  • Each track is proceeded by a line which is #EXTINF:${tracknumber},${name_of_track}
  • Each track uses a path relative to the playlist file, using Unix-style paths

Example snippet:

#EXTM3U
#PLAYLIST:Pink Floyd - A Momentary Lapse Of Reason
#EXTINF:1,[s1/o01/t001] Pink Floyd - Signs Of Life
../Pink Floyd/A Momentary Lapse Of Reason/001 Pink Floyd - Signs Of Life.ogg
#EXTINF:2,[s1/o02/t002] Pink Floyd - Learning To Fly
../Pink Floyd/A Momentary Lapse Of Reason/002 Pink Floyd - Learning To Fly.ogg
#EXTINF:3,[s1/o03/t003] Pink Floyd - The Dogs Of War
../Pink Floyd/A Momentary Lapse Of Reason/003 Pink Floyd - The Dogs Of War.ogg
… etc

These work just fine. admittedly the display text doesn't seem to show up, but the basic M3U playlist seems to work as expected. So maybe this bug is already solved? Otherwise, maybe attach a copy of the offending playlist so we can have a look and see what's tripping it up?

sjlongland avatar Jun 07 '20 04:06 sjlongland