aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-10-14 11:48:45 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-10-14 11:50:24 +0530
commit9b9dad119a5307fb847aa5626d9391b59f1865d5 (patch)
treee5c645829dbafda12ae89f32210afe2f126d3e67 /yt_dlp
parent6dca2aa66de8a142543d5c8b6ccadd251339648e (diff)
downloadhypervideo-pre-9b9dad119a5307fb847aa5626d9391b59f1865d5.tar.lz
hypervideo-pre-9b9dad119a5307fb847aa5626d9391b59f1865d5.tar.xz
hypervideo-pre-9b9dad119a5307fb847aa5626d9391b59f1865d5.zip
[outtmpl] Ensure ASCII in json and add option for Unicode
Closes #5236
Diffstat (limited to 'yt_dlp')
-rw-r--r--yt_dlp/YoutubeDL.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index 39df79a3f..4e57dffa3 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -1249,7 +1249,7 @@ class YoutubeDL:
elif fmt[-1] == 'j': # json
value, fmt = json.dumps(
value, default=_dumpjson_default,
- indent=4 if '#' in flags else None, ensure_ascii=False), str_fmt
+ indent=4 if '#' in flags else None, ensure_ascii='+' not in flags), str_fmt
elif fmt[-1] == 'h': # html
value, fmt = escapeHTML(str(value)), str_fmt
elif fmt[-1] == 'q': # quoted