1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-07-02 12:02:52 -05:00

[extractor] Extract storyboards from SMIL manifests (#1128)

Authored by: fstirlitz
This commit is contained in:
Felix S
2021-10-02 18:43:42 +00:00
committed by GitHub
parent 0eaec13ba6
commit 9359f3d4f0
3 changed files with 56 additions and 12 deletions

View File

@ -3029,9 +3029,7 @@ class YoutubeDL(object):
@staticmethod
def format_resolution(format, default='unknown'):
if format.get('vcodec') == 'none':
if format.get('acodec') == 'none':
return 'images'
if format.get('vcodec') == 'none' and format.get('acodec') != 'none':
return 'audio only'
if format.get('resolution') is not None:
return format['resolution']
@ -3043,6 +3041,8 @@ class YoutubeDL(object):
res = '%dx?' % format['width']
else:
res = default
if format.get('vcodec') == 'none' and format.get('acodec') == 'none':
res += ' (images)'
return res
def _format_note(self, fdict):