1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2025-07-01 07:56:20 +00:00

Merge 6f08b513bf5e82132f07810f40e3fe81e5698ef5 into 711e72c292327674c4a0593fdbb83d6347738ec9

This commit is contained in:
Trigus42 2025-02-24 05:05:59 +00:00 committed by GitHub
commit 0fb02dc657
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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