From c96f9aba0d2694783676dfb97b837d2ff6995766 Mon Sep 17 00:00:00 2001 From: ClosedPort22 <44864697+ClosedPort22@users.noreply.github.com> Date: Thu, 27 Jun 2024 12:54:22 +0800 Subject: [PATCH] [abc:iview] extract audio description track 'hls' -> 'hls-latest' --- yt_dlp/extractor/abc.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/yt_dlp/extractor/abc.py b/yt_dlp/extractor/abc.py index e3ed788d5e..b527050fcd 100644 --- a/yt_dlp/extractor/abc.py +++ b/yt_dlp/extractor/abc.py @@ -319,9 +319,7 @@ def tokenize_url(url, token): 'hdnea': token, }) - for sd in ('1080', '720', 'sd', 'sd-low'): - sd_url = try_get( - stream, lambda x: x['streams']['hls'][sd], str) + for sd_url in traverse_obj(stream, ('streams', 'hls-latest', ('1080', '720', 'sd', 'sd-low'), {str})): if not sd_url: continue formats = self._extract_m3u8_formats(