[extractor] Allow control characters inside json

Closes #3174
This commit is contained in:
pukkandan 2022-03-24 05:13:57 +05:30
parent 12a64f2777
commit 700ccbe3f1
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39
1 changed files with 1 additions and 1 deletions

View File

@ -1033,7 +1033,7 @@ class InfoExtractor(object):
if transform_source:
json_string = transform_source(json_string)
try:
return json.loads(json_string)
return json.loads(json_string, strict=False)
except ValueError as ve:
errmsg = '%s: Failed to parse JSON ' % video_id
if fatal: