From c588ffdedeecb8d2b97c2fa9b2c4e09a07c1b990 Mon Sep 17 00:00:00 2001 From: HobbyistDev Date: Wed, 14 Feb 2024 21:25:01 +0800 Subject: [PATCH] inline remove unneccessary variable `stream_urls` --- yt_dlp/extractor/viu.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/yt_dlp/extractor/viu.py b/yt_dlp/extractor/viu.py index eea44d3c2..95fd14359 100644 --- a/yt_dlp/extractor/viu.py +++ b/yt_dlp/extractor/viu.py @@ -315,10 +315,8 @@ def _real_extract(self, url): }, headers={ 'Authorization': f'Bearer {self._get_token(country_code, video_id)}' }) - - stream_urls = traverse_obj(stream_info_json, ('data', 'stream', ('url', 'airplayurl'), lambda _, v: v)) - for stream_url in stream_urls: + for stream_url in traverse_obj(stream_info_json, ('data', 'stream', ('url', 'airplayurl'), lambda _, v: v)): fmts, subs = self._extract_m3u8_formats_and_subtitles(stream_url, video_id, fatal=False) formats.extend(fmts) self._merge_subtitles(subs, target=subtitles)