mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-25 19:52:11 +00:00
youtube: Better error messages
This commit is contained in:
parent
1293ce58ac
commit
f3dc18d874
1 changed files with 1 additions and 2 deletions
|
@ -1286,7 +1286,7 @@ class YoutubeIE(InfoExtractor):
|
||||||
return
|
return
|
||||||
video_url_list = [(req_format, url_map[req_format])] # Specific format
|
video_url_list = [(req_format, url_map[req_format])] # Specific format
|
||||||
else:
|
else:
|
||||||
self._downloader.trouble(u'ERROR: no fmt_url_map or conn information found in video info')
|
self._downloader.trouble(u'ERROR: no conn or url_encoded_fmt_stream_map information found in video info')
|
||||||
return
|
return
|
||||||
|
|
||||||
for format_param, video_real_url in video_url_list:
|
for format_param, video_real_url in video_url_list:
|
||||||
|
@ -1296,7 +1296,6 @@ class YoutubeIE(InfoExtractor):
|
||||||
# Extension
|
# Extension
|
||||||
video_extension = self._video_extensions.get(format_param, 'flv')
|
video_extension = self._video_extensions.get(format_param, 'flv')
|
||||||
|
|
||||||
# Find the video URL in fmt_url_map or conn paramters
|
|
||||||
try:
|
try:
|
||||||
# Process video information
|
# Process video information
|
||||||
self._downloader.process_info({
|
self._downloader.process_info({
|
||||||
|
|
Loading…
Reference in a new issue