From fe0541845dd455e4e0ee15d91c6f663d17ece439 Mon Sep 17 00:00:00 2001 From: grqx_wsl <173253225+grqx@users.noreply.github.com> Date: Tue, 3 Dec 2024 17:36:08 +1300 Subject: [PATCH] extract storyboard formats after the flv check --- yt_dlp/extractor/bilibili.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/yt_dlp/extractor/bilibili.py b/yt_dlp/extractor/bilibili.py index 0c4b888acc..242c332b5c 100644 --- a/yt_dlp/extractor/bilibili.py +++ b/yt_dlp/extractor/bilibili.py @@ -857,10 +857,6 @@ class BiliBiliIE(BilibiliBaseIE): f'This is a supporter-only video, only the preview will be extracted: {msg}', video_id=video_id) - formats.append(self._extract_storyboard( - duration=float_or_none(play_info.get('timelength'), scale=1000), - bvid=video_id, cid=cid)) - if not traverse_obj(play_info, 'dash'): # we only have legacy formats and need additional work has_qn = lambda x: x in traverse_obj(formats, (..., 'quality')) @@ -906,6 +902,10 @@ class BiliBiliIE(BilibiliBaseIE): 'duration': float_or_none(play_info.get('timelength'), scale=1000), } + formats.append(self._extract_storyboard( + duration=float_or_none(play_info.get('timelength'), scale=1000), + bvid=video_id, cid=cid)) + return { **metainfo, 'formats': formats,