From dca9897b8acdabbbe7e1638f4ff09bd2861f1221 Mon Sep 17 00:00:00 2001 From: Mort Yao Date: Thu, 7 Mar 2019 13:47:31 +0100 Subject: [PATCH] [youtube] show quality_label --- src/you_get/extractors/youtube.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/you_get/extractors/youtube.py b/src/you_get/extractors/youtube.py index 552367dc..abef0403 100644 --- a/src/you_get/extractors/youtube.py +++ b/src/you_get/extractors/youtube.py @@ -437,7 +437,7 @@ class YouTube(VideoExtractor): dash_urls = self.__class__.chunk_by_range(dash_url, int(dash_size)) dash_mp4_a_urls = self.__class__.chunk_by_range(dash_mp4_a_url, int(dash_mp4_a_size)) self.dash_streams[itag] = { - 'quality': stream['size'], + 'quality': '%s (%s)' % (stream['size'], stream['quality_label']), 'itag': itag, 'type': mimeType, 'mime': mimeType, @@ -464,7 +464,7 @@ class YouTube(VideoExtractor): dash_urls = self.__class__.chunk_by_range(dash_url, int(dash_size)) audio_urls = self.__class__.chunk_by_range(audio_url, int(audio_size)) self.dash_streams[itag] = { - 'quality': stream['size'], + 'quality': '%s (%s)' % (stream['size'], stream['quality_label']), 'itag': itag, 'type': mimeType, 'mime': mimeType,