A feature-rich command-line audio/video downloader
[ustream] Checking errors
Yen Chi Hsuan762155cc9075
diff --git a/youtube_dl/extractor/ustream.py b/youtube_dl/extractor/ustream.pyindex d559e228a9..f8893b6cdc 100644--- a/youtube_dl/extractor/ustream.py+++ b/youtube_dl/extractor/ustream.py@@ -7,6 +7,7 @@ from .common import InfoExtractorfrom ..compat import (compat_urlparse,)+from ..utils import ExtractorErrorclass 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)