Allow for white spaces around ., (, ), [, ] and ,

https://github.com/ytdl-org/youtube-dl/pull/29897#pullrequestreview-744861659
This commit is contained in:
Trigus42 2021-09-02 16:26:49 +02:00 committed by GitHub
parent 6d88c72317
commit 6f08b513bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -431,7 +431,7 @@ Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
raise ExtractorError(note_m)
mobj = re.search(
r'Page\.messaging_box_controller\.addItems\(\[(?P<msg>{(?!.*},{).+?})\]\)',
r'Page\s*\.\s*messaging_box_controller\s*\.\s*addItems\s*\(\s*\[\s*(?P<msg>{(?!.*}\s*,\s*{).+?})\s*\]\s*\)',
webpage)
if mobj: