Skip to content

m3u playlist parsing #408

@GeorgeBroughton

Description

@GeorgeBroughton

I'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:[email protected]/Movies/some_movie.mp4
#EXTINF:123, Movie2
https://username:[email protected]/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:
image

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions