projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not show bug report for errors that are to be expected (Closes #973)
[youtube-dl]
/
youtube_dl
/
extractor
/
youtube.py
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index b526e0c5375737e1d653116185d02415a6af6284..14a8bd6ea9ead38b15ae7fe41366248e6507882b 100644
(file)
--- a/
youtube_dl/extractor/youtube.py
+++ b/
youtube_dl/extractor/youtube.py
@@
-441,7
+441,7
@@
class YoutubeIE(InfoExtractor):
break
if 'token' not in video_info:
if 'reason' in video_info:
break
if 'token' not in video_info:
if 'reason' in video_info:
- raise ExtractorError(u'YouTube said: %s' % video_info['reason'][0])
+ raise ExtractorError(u'YouTube said: %s' % video_info['reason'][0]
, expected=True
)
else:
raise ExtractorError(u'"token" parameter not in video info for unknown reason')
else:
raise ExtractorError(u'"token" parameter not in video info for unknown reason')