aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/YoutubeDL.py
diff options
context:
space:
mode:
authorFelix S <felix.von.s@posteo.de>2021-10-02 18:43:42 +0000
committerGitHub <noreply@github.com>2021-10-03 00:13:42 +0530
commit9359f3d4f02856128f5626e754c7f64e2232b02f (patch)
tree601dd118dfa2c5b8226086bf5f303656986dc735 /yt_dlp/YoutubeDL.py
parent0eaec13ba6abe18d6ddf35f2ebffdcaf3937e485 (diff)
downloadhypervideo-pre-9359f3d4f02856128f5626e754c7f64e2232b02f.tar.lz
hypervideo-pre-9359f3d4f02856128f5626e754c7f64e2232b02f.tar.xz
hypervideo-pre-9359f3d4f02856128f5626e754c7f64e2232b02f.zip
[extractor] Extract storyboards from SMIL manifests (#1128)
Authored by: fstirlitz
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r--yt_dlp/YoutubeDL.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index c42a29ee3..9c4dd3ec5 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -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):