projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
420658e
)
[youtube] Handle empty allowed regions (Closes #6351)
author
Sergey M․
<dstftw@gmail.com>
Fri, 24 Jul 2015 20:09:34 +0000
(
02:09
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 24 Jul 2015 20:09:34 +0000
(
02:09
+0600)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index 229fc3a0f762597832d7c2f31f46e64f0772293c..4023a6e50bafd90bea320ef70ae4138961251d5a 100644
(file)
--- a/
youtube_dl/extractor/youtube.py
+++ b/
youtube_dl/extractor/youtube.py
@@
-993,7
+993,7
@@
class YoutubeIE(YoutubeBaseInfoExtractor):
if 'reason' in video_info:
if 'The uploader has not made this video available in your country.' in video_info['reason']:
regions_allowed = self._html_search_meta('regionsAllowed', video_webpage, default=None)
- if regions_allowed
is not None
:
+ if regions_allowed:
raise ExtractorError('YouTube said: This video is available in %s only' % (
', '.join(map(ISO3166Utils.short2full, regions_allowed.split(',')))),
expected=True)