mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-09 12:50:23 -05:00
Use set
This commit is contained in:
parent
18626bbb03
commit
cf7c0e3347
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ def _real_extract(self, url):
|
||||||
(('video', 'detail'), ('series', 'currentEpisode')), {dict}), get_all=False)
|
(('video', 'detail'), ('series', 'currentEpisode')), {dict}), get_all=False)
|
||||||
formats = []
|
formats = []
|
||||||
subtitles = {}
|
subtitles = {}
|
||||||
for url in traverse_obj(data, ((('manifests', ..., 'hls'), 'jwp_video_url'), {url_or_none})):
|
for url in set(traverse_obj(data, ((('manifests', ..., 'hls'), 'jwp_video_url'), {url_or_none}))):
|
||||||
fmts, subs = self._extract_m3u8_formats_and_subtitles(
|
fmts, subs = self._extract_m3u8_formats_and_subtitles(
|
||||||
url, video_id, 'mp4', m3u8_id='hls', fatal=False)
|
url, video_id, 'mp4', m3u8_id='hls', fatal=False)
|
||||||
formats.extend(fmts)
|
formats.extend(fmts)
|
||||||
|
|
Loading…
Reference in a new issue