diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py index c85949c3c..a3ff5a1c0 100644 --- a/yt_dlp/extractor/common.py +++ b/yt_dlp/extractor/common.py @@ -1824,7 +1824,7 @@ def flatten(flight_data): for f in flight_text.splitlines(): prefix, _, body = f.partition(':') - if body.startswith('[') and body.endswith(']') and re.fullmatch(r'[0-9a-f]{1,3}', prefix.strip()): + if body.startswith('[') and body.endswith(']') and re.fullmatch(r'[0-9a-f]{1,3}', prefix.lstrip()): # The body isn't necessarily valid JSON, so this should always be non-fatal flatten(self._parse_json(body, video_id, fatal=False, errnote=False))