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:
parent
2cc41d1f20
commit
fb26d5134e
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user