commit: 50be92c11cfb62b2eb41e7216950bd8cbf65f39f
parent 7ce7e3947600bfb4b8b84e00c02aabc91b5ed0ae
Author: Philipp Hagemeister <phihag@phihag.de>
Date: Tue, 25 Jun 2013 11:17:28 +0200
Handle video pages without vevo IDs (Fixes #923)
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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