[extractor] Extract storyboards from SMIL manifests (#1128)
Authored by: fstirlitz
This commit is contained in:
parent
0eaec13ba6
commit
9359f3d4f0
3 changed files with 56 additions and 12 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue