aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/youtube.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-06-25 11:17:28 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2013-06-25 12:28:17 +0200
commit50be92c11cfb62b2eb41e7216950bd8cbf65f39f (patch)
treec743bf8a73fba2566e154cf691370fa9d617b2a9 /youtube_dl/extractor/youtube.py
parent7ce7e3947600bfb4b8b84e00c02aabc91b5ed0ae (diff)
Handle video pages without vevo IDs (Fixes #923)
Diffstat (limited to 'youtube_dl/extractor/youtube.py')
-rw-r--r--youtube_dl/extractor/youtube.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index b34c1a7b9..23ee24d70 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -484,6 +484,8 @@ class YoutubeIE(InfoExtractor):
try:
mobj = re.search(r';ytplayer.config = ({.*?});', video_webpage)
+ if not mobj:
+ raise ValueError('Could not find vevo ID')
info = json.loads(mobj.group(1))
args = info['args']
# Easy way to know if the 's' value is in url_encoded_fmt_stream_map