3 ms·
Do you maintain any kind of database or additional metadata alongside all of those video files? I only ask because the default filenames generated by youtube-dl
by mmcwilliams 7y ago
Do you maintain any kind of database or additional metadata alongside all of those video files? I only ask because the default filenames generated by youtube-dl don't give you anything more than the title and ID for a particular video and I imagine it's difficult to search among tens of thousands of media files without contextual data about the files.
- rwmj 7y agoNo, just filenames and whatever metadata is stored inside the file. For get_iplayer this isn't very much unless you have "AtomicParsely" installed too, but I uninstalled AP after it segfaulted once too often. Note for BBC TV programmes you can search on the "PID" (which is part of the filename), eg: try searching for "m000427z". However I also download subtitles where available so I guess I could search those as they are just text.
- rndgermandude 7y agoyt-dl has a full-fledged output template system. It's just the default output template that is only the title+id. https://github.com/ytdl-org/youtube-dl/blob/master/README.md#output-template https://github.com/ytdl-org/youtube-dl/blob/master/README.md... Also, it has the --write-* switches, in particular --write-info-json, which allow to store metadata data. in files, and --add-metadata to embed (some) of the metadata in the file itself. Of course, the metadata is only as good as the site in question provides + the yt-dl plugin handing a particular site supports.
- mmcwilliams 7y agoI was familiar with the -o template system for filenames, but wasn't aware of the --write-info-json flag which is very useful to me. It makes a lot more sense than overloading the filenames with usernames and everything else only to parse it out after download.