m3u playlist parsing
See original GitHub issueI’ve noticed when i create an m3u8 playlist, Syncplay doesn’t parse metadata in the list. Not a huge deal, but it can make things more readable when your username and passwords that are in those links are 128 character randomly generated strings lol
Example.m3u8:
#EXTM3U
#EXTINF:123, Movie1
https://username:password@domain.com/Movies/some_movie.mp4
#EXTINF:123, Movie2
https://username:password@domain.com/Movies/some_other_movie.mp4
VLC media player will display the names of the movies as “Movie1” and “Movie2” that are 2 minutes and 3 seconds long (123 seconds) rather than the URL, if i open it directly. However syncplay does this:

It’s treating the comments/metadata in the file as though it’s a movie to play, rather than the title info & other metadata.
So, i have some suggestions. Either: A: Make the playlist a “DataGridView Control” or at least that’s what it’s called in winforms, though i see you’re using qt, so whatever the equivalent is in there. Add columns for Artist, Album, Title, Track number, URL, Duration, etc. Have it populate that list from the metadata/URLs.
B: Make it ignore empty lines and metadata. It’ll still pull the links through though and it’ll work. It just won’t be purdy.
I’m willing to put in a herculian effort to add this myself someday, but i have a lot on my plate right now, and probably will for a while. Any questions on implementation, I’m happy to answer though.
There’s some documentation here on the subject: https://docs.fileformat.com/audio/m3u/
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top Related StackOverflow Question
Okay, the more I look into the details of the .m3u format the more I want Syncplay to simply support txt files with one filename/character per line. Issue include handling filenames starting with a # and handling items using special characters. I’m now in favour of just changing the default file format for loading/saving playlists to .txt and making it clear in our documentation that Syncplay does not provide full m3u support.