From 9359f3d4f02856128f5626e754c7f64e2232b02f Mon Sep 17 00:00:00 2001 From: Felix S Date: Sat, 2 Oct 2021 18:43:42 +0000 Subject: [extractor] Extract storyboards from SMIL manifests (#1128) Authored by: fstirlitz --- yt_dlp/YoutubeDL.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'yt_dlp/YoutubeDL.py') 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): -- cgit v1.2.3