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:
parent
87733cc0b8
commit
bb0ee19840
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user