From 3fa611f3eaabcac4450026a3ae761240fbf784ff Mon Sep 17 00:00:00 2001 From: sepro Date: Mon, 3 Mar 2025 22:50:37 +0100 Subject: [PATCH] Apply review suggestions Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com> --- yt_dlp/extractor/magellantv.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yt_dlp/extractor/magellantv.py b/yt_dlp/extractor/magellantv.py index abbb8cfc5..e7ae709cf 100644 --- a/yt_dlp/extractor/magellantv.py +++ b/yt_dlp/extractor/magellantv.py @@ -48,9 +48,9 @@ def _real_extract(self, url): data = traverse_obj(context, ((('video', 'detail'), ('series', 'currentEpisode')), {dict}, any)) formats, subtitles = [], {} - for url in set(traverse_obj(data, ((('manifests', ..., 'hls'), 'jwp_video_url'), {url_or_none}))): + for m3u8_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) + m3u8_url, video_id, 'mp4', m3u8_id='hls', fatal=False) formats.extend(fmts) self._merge_subtitles(subs, target=subtitles) if not formats and (error := traverse_obj(context, ('errorDetailPage', 'errorMessage', {str}))):