[youtube] show quality_label

This commit is contained in:
Mort Yao 2019-03-07 13:47:31 +01:00
parent 35f20be70c
commit dca9897b8a
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

View File

@ -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,