mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-01-25 10:16:50 +00:00
inline remove unneccessary variable stream_urls
This commit is contained in:
parent
827821d6ca
commit
c588ffdede
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue