1
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-03-09 12:50:23 -05:00
This commit is contained in:
sepro 2025-03-01 18:46:05 +01:00
parent 18626bbb03
commit cf7c0e3347

View file

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