diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2015-04-23 18:07:09 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2015-04-23 18:10:18 +0800 |
commit | 762155cc90754fc29c68bf0f0256988f37862c3b (patch) | |
tree | ff4b975e6610ab2869463ca66f631ee8073b8a8f /youtube_dl/extractor | |
parent | f8610ba1ca4705dcae5c45c5ac66a99b174ebed3 (diff) |
[ustream] Checking errors
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/ustream.py | 4 |
1 files changed, 4 insertions, 0 deletions
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) |