[abc:iview] extract audio description track

'hls' -> 'hls-latest'
This commit is contained in:
ClosedPort22 2024-06-27 12:54:22 +08:00
parent 5c3a2daf6a
commit c96f9aba0d
No known key found for this signature in database

View File

@ -319,9 +319,7 @@ def tokenize_url(url, token):
'hdnea': token, 'hdnea': token,
}) })
for sd in ('1080', '720', 'sd', 'sd-low'): for sd_url in traverse_obj(stream, ('streams', 'hls-latest', ('1080', '720', 'sd', 'sd-low'), {str})):
sd_url = try_get(
stream, lambda x: x['streams']['hls'][sd], str)
if not sd_url: if not sd_url:
continue continue
formats = self._extract_m3u8_formats( formats = self._extract_m3u8_formats(