0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-12-20 05:40:00 +00:00

[ie/youtube] Fix release_date extraction (#11759)

Authored by: MutantPiggieGolem1
This commit is contained in:
Pew 2024-12-12 05:46:52 -08:00 committed by GitHub
parent bc262bcad4
commit d5e2a379f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4689,7 +4689,7 @@ def process_language(container, base_url, lang_code, sub_name, query):
(?=(?P<artist>[^\n]+))(?P=artist)\n+ (?=(?P<artist>[^\n]+))(?P=artist)\n+
(?=(?P<album>[^\n]+))(?P=album)\n (?=(?P<album>[^\n]+))(?P=album)\n
(?:.+?\s*(?P<release_year>\d{4})(?!\d))? (?:.+?\s*(?P<release_year>\d{4})(?!\d))?
(?:.+?Released on\s*:\s*(?P<release_date>\d{4}-\d{2}-\d{2}))? (?:.+?Released\ on\s*:\s*(?P<release_date>\d{4}-\d{2}-\d{2}))?
(.+?\nArtist\s*:\s* (.+?\nArtist\s*:\s*
(?=(?P<clean_artist>[^\n]+))(?P=clean_artist)\n (?=(?P<clean_artist>[^\n]+))(?P=clean_artist)\n
)?.+\nAuto-generated\ by\ YouTube\.\s*$ )?.+\nAuto-generated\ by\ YouTube\.\s*$