From ce7e19464562b0b7a5dab35115c7e638a916bc54 Mon Sep 17 00:00:00 2001 From: bashonly Date: Sat, 12 Jul 2025 16:56:51 -0500 Subject: [PATCH] lstrip not strip Authored by: bashonly --- yt_dlp/extractor/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py index c85949c3c6..a3ff5a1c0b 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))