aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-05-11 23:29:05 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-05-11 23:29:26 +0530
commit3d89341b4748f430e7a87000cfd987deec2e10c6 (patch)
tree77165a961bb69ff2d996a768c4cf7b43089a8611
parentd8ec40b39f29722ac409fdded41e5b47b918b1a7 (diff)
downloadhypervideo-pre-3d89341b4748f430e7a87000cfd987deec2e10c6.tar.lz
hypervideo-pre-3d89341b4748f430e7a87000cfd987deec2e10c6.tar.xz
hypervideo-pre-3d89341b4748f430e7a87000cfd987deec2e10c6.zip
[common] bugfix for when `compat_opts` is not given
-rw-r--r--yt_dlp/extractor/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py
index 99695e14f..cd3aa52a0 100644
--- a/yt_dlp/extractor/common.py
+++ b/yt_dlp/extractor/common.py
@@ -559,7 +559,7 @@ class InfoExtractor(object):
ie_result['__x_forwarded_for_ip'] = self._x_forwarded_for_ip
subtitles = ie_result.get('subtitles')
if (subtitles and 'live_chat' in subtitles
- and 'no-live-chat' in self._downloader.params.get('compat_opts')):
+ and 'no-live-chat' in self._downloader.params.get('compat_opts', [])):
del subtitles['live_chat']
return ie_result
except GeoRestrictedError as e: