diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-03-24 05:13:57 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-03-24 07:28:07 +0530 |
commit | 700ccbe3f14e9b1f3708a562efc57361c14dee68 (patch) | |
tree | 5d8f38e5c6b2a8a7b685cf0e3543ee612d14a7b1 /yt_dlp/extractor/common.py | |
parent | 12a64f27772f699f61b50340370c5b44b71aa7ad (diff) | |
download | hypervideo-pre-700ccbe3f14e9b1f3708a562efc57361c14dee68.tar.lz hypervideo-pre-700ccbe3f14e9b1f3708a562efc57361c14dee68.tar.xz hypervideo-pre-700ccbe3f14e9b1f3708a562efc57361c14dee68.zip |
[extractor] Allow control characters inside json
Closes #3174
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r-- | yt_dlp/extractor/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py index f3ae3fd4c..e1a661033 100644 --- a/yt_dlp/extractor/common.py +++ b/yt_dlp/extractor/common.py @@ -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: |