mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-12-26 21:59:08 +01:00
extract storyboard formats after the flv check
This commit is contained in:
parent
d3604f2e35
commit
fe0541845d
1 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue