[common] bugfix for when `compat_opts` is not given

pull/311/head
pukkandan 2021-05-11 23:29:05 +05:30
rodzic d8ec40b39f
commit 3d89341b47
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0F00D95A001F4698
1 zmienionych plików z 1 dodań i 1 usunięć
yt_dlp/extractor

Wyświetl plik

@ -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: