extract storyboard formats after the flv check

This commit is contained in:
grqx_wsl 2024-12-03 17:36:08 +13:00
parent d3604f2e35
commit fe0541845d

View file

@ -857,10 +857,6 @@ class BiliBiliIE(BilibiliBaseIE):
f'This is a supporter-only video, only the preview will be extracted: {msg}', f'This is a supporter-only video, only the preview will be extracted: {msg}',
video_id=video_id) 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'): if not traverse_obj(play_info, 'dash'):
# we only have legacy formats and need additional work # we only have legacy formats and need additional work
has_qn = lambda x: x in traverse_obj(formats, (..., 'quality')) 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), '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 { return {
**metainfo, **metainfo,
'formats': formats, 'formats': formats,