
--parse-metadata and release_year.
This seems like it should be easy to figure out, but it's breaking my brain.
I was using --parse-metadata ' 2002: %(release_year)s' to add the release year to music downloads, and yt-dlp was printing [MetadataParser] Parsed release_year from ' 2002': '2002' which looked fine, until I viewed the files in Windows, where it said the year was 55724.
I can go into the Properties in Windows and change that to 2002 and it then shows up correctly, but obviously this makes the option under yt-dlp redundant and it's much slower and labour-intensive.
Since release_year is numeric, I tried both --parse-metadata ' 2002: %(release_year)04d' and --parse-metadata ' 2002: (?P<meta_release_year>)04d' but that results in [MetadataParser] Could not interpret ' 2002' as ' %(release_year)04d' and [MetadataParser] Could not interpret ' 2002' as ' (?P<meta_release_year>)04d' so that's out as well.
What's the solution for this?
edit: someone asked for an example url but their comment isn't showing up, so here's one I was using this morning: yt-dlp --config-location '/home/morokweng/.config/youtube-dl/config.music' --no-warnings --parse-metadata ' 2002: %(release_year)04d' --parse-metadata ' Pop Punk; Punk Rock: %(genre)s' --parse-metadata 'playlist_title:%(album)s' --parse-metadata ' Bodyjar: %(album_artist)s' --parse-metadata ':(?P<meta_artist>)' -o '/media/youtubedownloads/Music/Audio/unchecked/Bodyjar/%(playlist_title)s/%(title)s.%(ext)s' --parse-metadata 'title:%(title)s' --parse-metadata 'playlist_index:%(track_number)s' https://www.youtube.com/playlist?list=OLAK5uy_nj5OcIBiQBzAiId17i9zqC2ZKdzktXHRk