-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add Metadata to Playlist Files #2215
Conversation
Bug fixes: - Always include filter when sending requests to piped by @xnetcat - Check status code when getting response from piped by @xnetcat - Use piped.video instead of main piped instance by @j3bx in spotDL#2172 - Fixed `RuntimeError: Directory 'C:\Users\myuser\.spotdl\web-ui\dist' does not exist` by @R0GUE-A5H in spotDL#2173 - Make sync command aware of file name changes by @xnetcat Documentation: - Chore: update downloader.py by @Elto Co-authored-by: kuba <xnetcat.dev@gmail.com> Co-authored-by: Alan <96998756+j3bx@users.noreply.github.com> Co-authored-by: Ikko Eltociear Ashimine <eltociear@gmail.com> Co-authored-by: Ash <38578557+R0GUE-A5H@users.noreply.github.com>
Don't worry about tests, they are currently being improved. I will check this PR later today. Ping me so I don't forget :) |
You should also add an cli argument |
Ok, so to enhance M3U file generation, I shld create a new CLI arg, and reuse the existing function for m3u in the new cli arg, rt? |
@xnetcat Can u plz recheck this PR, added new CLI arg |
@PranjalSurana is there any reason not to simply change the default |
@Silverarmor, I can use the default --m3u CLI arg, there is no downside to it. |
copying in all users who have interacted with the m3u file issue recently. Thanks all for your input on this bug that was introduced. In my opinion, the best solution is to remove the option (i.e. the CLI flag) to allow for customising metadata.
There appears to be no reason to allow customisation of these tags. Devices that do not support it simply ignore the metadata due to the Are there any disagreements on this? Apologies for the delay in merging PRs resolving this, as some of them didn't solve the root cause. |
The part after the comma is the display name, so I left that in as configurable for those that really want it, but happy either way.
On Mon, Dec 9, 2024, at 7:40 PM, Jayden wrote:
copying in all users who have interacted with the m3u file issue recently.
@jessicah <https://github.com/jessicah> @jnxr <https://github.com/jnxr> @redfast00 <https://github.com/redfast00> @PranjalSurana <https://github.com/PranjalSurana> @xnetcat <https://github.com/xnetcat>
Thanks all for your input on this bug that was introduced. In my opinion, the best solution is to remove the *option* (i.e. the CLI flag) to allow for customising metadata.
Reviewing the file format <https://en.wikipedia.org/wiki/M3U>, we should have an m3u / m3u8 file as follows
`#EXTM3U
#EXTINF:123,Artist Name - Track Title
Artist Name - Track title.mp3
#EXTINF:123,TestTwo- TestTwo
TestTwo.mp3
`
… There appears to be no reason to allow customisation of these tags. Devices that do not support it simply ignore the metadata due to the `#` comment operator.
Are there any disagreements on this? Apologies for the delay in merging PRs resolving this, as some of them didn't solve the root cause.
—
Reply to this email directly, view it on GitHub <#2215 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AACC5IUXJBPGYTK5MLEEWP32EU3MLAVCNFSM6AAAAABQB2CPNKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRXGA3DINJSGU>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
My two cents: a recent upgrade of spotDL changed the format that files are saved in if there are multiple authors of a song. This caused a bunch of duplicate files (one with only one author that was downloaded before the change, one with multiple authors that was downloaded after the change (or vice versa)). The simple format of the m3u file, where each line contains a filename, allowed me to easily write a commandline that moved the duplicate files that aren't in the m3u to a separate folder; for that purpose, the simpler m3u format was useful. I realize this is a real edge case, so I'd say, disregard that usecase (woudn't be that hard to ignore lines starting with # anyways); I agree with just removing the CLI flag and using a default format. |
The m3u customization can be used to hard code paths into the playlist file. The saved playlist files can then be placed outside of the folder and still work. You could play stuff from your NAS or something directly from the playlist file. Right now, it would require one to go to the path the files are within or else the playlist file won't work. The issue is solvable, the entire feature doesn't need to be removed outright. |
@jnxr The m3u8 is created from the defined e.g. Using |
@Silverarmor |
Hmm that's true. However I don't see it as a crucial feature that many users must have. copy past: |
Title
Add Metadata to Playlist Files
Description
Adding new setting to enhance the playlist (M3U) file generation by including #EXTINF metadata tag.
Related Issue
#2126
Motivation and Context
Enhancing playlist (M3U) file generation by including #EXTINF metadata tag . This would enrich the playlist files by including additional information like track duration and title, thereby providing a better user experience.
How Has This Been Tested?
Ran spotDL many times, to test various scenarios
Screenshots (if appropriate)
Types of Changes
Checklist