From 6f08b513bf5e82132f07810f40e3fe81e5698ef5 Mon Sep 17 00:00:00 2001 From: Trigus42 <59501676+Trigus42@users.noreply.github.com> Date: Thu, 2 Sep 2021 16:26:49 +0200 Subject: [PATCH] Allow for white spaces around `.`, `(`, `)`, `[`, `]` and `,` https://github.com/ytdl-org/youtube-dl/pull/29897#pullrequestreview-744861659 --- youtube_dl/extractor/crunchyroll.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/crunchyroll.py b/youtube_dl/extractor/crunchyroll.py index ef9639cbd..3e72e6b17 100644 --- a/youtube_dl/extractor/crunchyroll.py +++ b/youtube_dl/extractor/crunchyroll.py @@ -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{(?!.*},{).+?})\]\)', + r'Page\s*\.\s*messaging_box_controller\s*\.\s*addItems\s*\(\s*\[\s*(?P{(?!.*}\s*,\s*{).+?})\s*\]\s*\)', webpage) if mobj: