Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playlists should be saved with #EXTM3U in the first line #117

Closed
FichteFoll opened this issue Jan 10, 2023 · 1 comment
Closed

Playlists should be saved with #EXTM3U in the first line #117

FichteFoll opened this issue Jan 10, 2023 · 1 comment

Comments

@FichteFoll
Copy link

FichteFoll commented Jan 10, 2023

The playlists saved with the save script message contain #EXTINF lines but are missing the initial #EXTM3U line that is necessary to tell mpv itself and probably most other players to use the provided metadata.

See also https://en.wikipedia.org/wiki/M3U#Extended_M3U.

Steps for reproduction:

  1. Have a playlist with multiple URLs.
  2. Save the playlist to a file, e.g. /tmp/playlist.txt
  3. Open the file with mpv using mpv --playlist=/tmp/playlist.txt

mpv will show each #EXTINF line from the playlist file as its own playlist entry. Adding the required line manually resolves the issue.

@jonniek
Copy link
Owner

jonniek commented Jan 12, 2023

Thanks for the info. I didn't know this 👍 I think if the file is m3u extension mpv would automatically use it, this is probably how I tested it. But it's good to add the correct header to support any other file extensions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants