1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-11 06:52:59 +08:00

Warn user if DASH offers higher quality

Currently, this message is printed whenever _real_extract() is called;
still looking for a way to only print when we're downloading.
This commit is contained in:
AGSPhoenix 2014-03-06 21:26:53 -05:00
parent 87733cc0b8
commit bb0ee19840

View File

@ -1431,6 +1431,14 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
self.report_warning(u'Skipping DASH manifest: %s' % e, video_id)
self._sort_formats(formats)
#Warn user if DASH offers higher qualities
for format in formats:
if 'height' in format:
if format['height'] > formats[-1]['height']:
self.to_screen("Warning: youtube-dl can't automatically download the best version of this video.")
self.to_screen("For more information: https://goo.gl/ychwk3")
break
return {
'id': video_id,