aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2018-08-09 00:16:33 -0700
committerJames Taylor <user234683@users.noreply.github.com>2018-08-09 00:16:33 -0700
commit1d99efffa0fdee56dd9656887c747d15594a3611 (patch)
tree36068965e55156a8dfb582fa655ccdb5acb912a9 /youtube_dl
parent754794753ac8a6caf92250094ef022e9bd6558ef (diff)
downloadyt-local-1d99efffa0fdee56dd9656887c747d15594a3611.tar.lz
yt-local-1d99efffa0fdee56dd9656887c747d15594a3611.tar.xz
yt-local-1d99efffa0fdee56dd9656887c747d15594a3611.zip
Use the more descriptive error when vid not available
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/youtube.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index 39e4ca5..5531f74 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -1935,9 +1935,9 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
a_format.setdefault('http_headers', {})['Youtubedl-no-compression'] = 'True'
formats.append(a_format)
else:
- error_message = clean_html(video_info.get('reason', [None])[0])
+ error_message = extract_unavailable_message()
if not error_message:
- error_message = extract_unavailable_message()
+ error_message = clean_html(video_info.get('reason', [None])[0])
if error_message:
raise YoutubeError(error_message)
raise ExtractorError('no conn, hlsvp or url_encoded_fmt_stream_map information found in video info')