aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-10-10 11:06:23 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-10-10 11:44:44 +0530
commite8f726a57fe144cb5a6f548e4654944ac2b2aa50 (patch)
tree7f749a23a7c410465915a95d02f0057c5182ed30
parent8063de51097a7af719c7a8c95b8f7c097573046f (diff)
downloadhypervideo-pre-e8f726a57fe144cb5a6f548e4654944ac2b2aa50.tar.lz
hypervideo-pre-e8f726a57fe144cb5a6f548e4654944ac2b2aa50.tar.xz
hypervideo-pre-e8f726a57fe144cb5a6f548e4654944ac2b2aa50.zip
[hidive] Fix typo in b5ae35ee6d3f913898770b8c74ee5f5e5cc33560
-rw-r--r--yt_dlp/extractor/hidive.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/yt_dlp/extractor/hidive.py b/yt_dlp/extractor/hidive.py
index ef1ca197e..15bd444f9 100644
--- a/yt_dlp/extractor/hidive.py
+++ b/yt_dlp/extractor/hidive.py
@@ -72,8 +72,9 @@ class HiDiveIE(InfoExtractor):
parsed_urls.add(cc_url)
subtitles.setdefault(cc_lang, []).append({'url': cc_url})
- def _get_subtitles(self, url, video_id, title, key, subtitles, parsed_urls):
+ def _get_subtitles(self, url, video_id, title, key, parsed_urls):
webpage = self._download_webpage(url, video_id, fatal=False) or ''
+ subtitles = {}
for caption in set(re.findall(r'data-captions=\"([^\"]+)\"', webpage)):
renditions = self._call_api(
video_id, title, key, {'Captions': caption}, fatal=False,
@@ -93,7 +94,7 @@ class HiDiveIE(InfoExtractor):
raise ExtractorError(
'%s said: %s' % (self.IE_NAME, restriction), expected=True)
- formats, parsed_urls = [], {}, {None}
+ formats, parsed_urls = [], {None}
for rendition_id, rendition in settings['renditions'].items():
audio, version, extra = rendition_id.split('_')
m3u8_url = url_or_none(try_get(rendition, lambda x: x['bitrates']['hls']))