1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-08-14 16:38:29 +00:00

update regex to follow coding guidelines

make unreferenced group non-capturing
This commit is contained in:
TheQWERTYCodr 2025-08-01 07:40:35 -04:00 committed by GitHub
parent 2cc41d1f20
commit fb26d5134e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4200,7 +4200,7 @@ def process_language(container, base_url, lang_code, sub_name, client_name, quer
(?P<album>[^\n]+)\n+
(?:\s*(?P<release_year>\d{4})[^\n]+\n+)?
(?:Released\ on\s*:\s*(?P<release_date>\d{4}-\d{2}-\d{2}))?
(.+?\nArtist\s*:\s*(?P<clean_artist>[^\n]+)\n)?
(?:.+?\nArtist\s*:\s*(?P<clean_artist>[^\n]+)\n)?
.+Auto-generated\ by\ YouTube\.\s*$
''', video_description)
if mobj: