Remix.run Logo
voidUpdate 2 days ago

`yt-dlp -x --audio-format mp3 "URL"` does the trick for me, then I just load it on to my phone's mp3 player. These days, I also use a python script to quickly add the artist and name id3 tags, but I always just rename the file to "artist - songname.mp3" too

hofrogs 2 days ago | parent | next [-]

yt-dlp has a `--add-metadata` flag, it puts the channel name in the artist field, video name in the name field and gets the thumbnail as well, I think. Could be useful!

voidUpdate 2 days ago | parent [-]

That will work for the videos that youtube tags as music releases, but I also pull music from videos that don't conform to that correctly.

For example, if I wanted to download Better Luck Next Time by Bombs Away (a random example from the My Mix playlist right now), it would set "Artist" to "Central Station Records" and "Name" to "Bombs Away - Better Luck Next Time [Official Video]". I have a reasonably diverse and sometimes niche music taste, so that problem would crop up a lot, and at that point it's just easier to do it myself, but it would work well for some people =)

I have a python script set up so I can just do "./id3.py artist name filename" and it'll do all the id3 stuff for me (apart from thumbnails, still working on that)

I realise my workflow isn't ideal for some people who want everything to "just work" but I'm happy enough to sort out filenames and stuff like that myself, it makes me feel happy. I do the same with my very legally acquired films and tv shows too

nunobrito 2 days ago | parent | prev [-]

yt-dlp is fantastic. Don't know if useful, but they do permit to rename the file name directly from the options. This is a syntax example:

yt-dlp -o '/home/yourusername/Videos/%(title)s.%(ext)s' "URL"

voidUpdate 2 days ago | parent [-]

Yeah, I did see that, but the videos I download don't always have their titles in the format that I'd like, or they don't include the artist name or whatever, so I just do it myself.

For example, https://youtu.be/ll0egrmKZj0 doesn't include the song name or artist name anywhere in the title (I prefer this version to the final released version of Stand and Deliver), so I'd have to rename it myself anyway to "Look Mum No Computer - Stand and Deliver.mp3"