From: Yen Chi Hsuan Date: Thu, 23 Apr 2015 10:07:09 +0000 (+0800) Subject: [ustream] Checking errors X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=762155cc90754fc29c68bf0f0256988f37862c3b;p=youtube-dl [ustream] Checking errors --- diff --git a/youtube_dl/extractor/ustream.py b/youtube_dl/extractor/ustream.py index d559e228a..f8893b6cd 100644 --- a/youtube_dl/extractor/ustream.py +++ b/youtube_dl/extractor/ustream.py @@ -7,6 +7,7 @@ from .common import InfoExtractor from ..compat import ( compat_urlparse, ) +from ..utils import ExtractorError class UstreamIE(InfoExtractor): @@ -47,6 +48,9 @@ class UstreamIE(InfoExtractor): 'autoplay': False, }), video_id) + if 'error' in params: + raise ExtractorError(params['error']['message'], expected=True) + video_url = params['flv'] webpage = self._download_webpage(url, video_id)