mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-11 14:33:05 +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
@ -1432,6 +1432,14 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
|
|||||||
|
|
||||||
self._sort_formats(formats)
|
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 {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'uploader': video_uploader,
|
'uploader': video_uploader,
|
||||||
|
Loading…
Reference in New Issue
Block a user