mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-23 10:37:18 -05:00
[common] bugfix for when compat_opts
is not given
This commit is contained in:
parent
d8ec40b39f
commit
3d89341b47
@ -559,7 +559,7 @@ class InfoExtractor(object):
|
|||||||
ie_result['__x_forwarded_for_ip'] = self._x_forwarded_for_ip
|
ie_result['__x_forwarded_for_ip'] = self._x_forwarded_for_ip
|
||||||
subtitles = ie_result.get('subtitles')
|
subtitles = ie_result.get('subtitles')
|
||||||
if (subtitles and 'live_chat' in 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']
|
del subtitles['live_chat']
|
||||||
return ie_result
|
return ie_result
|
||||||
except GeoRestrictedError as e:
|
except GeoRestrictedError as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user