From cf7c0e334751c0e59d27c3ec124a7793bce5ae68 Mon Sep 17 00:00:00 2001 From: sepro Date: Sat, 1 Mar 2025 18:46:05 +0100 Subject: [PATCH] Use set --- yt_dlp/extractor/magellantv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/magellantv.py b/yt_dlp/extractor/magellantv.py index 0d38bdf1b..cab63d19e 100644 --- a/yt_dlp/extractor/magellantv.py +++ b/yt_dlp/extractor/magellantv.py @@ -49,7 +49,7 @@ def _real_extract(self, url): (('video', 'detail'), ('series', 'currentEpisode')), {dict}), get_all=False) formats = [] 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( url, video_id, 'mp4', m3u8_id='hls', fatal=False) formats.extend(fmts)