1
0
Fork 0
mirror of https://codeberg.org/polarisfm/youtube-dl.git synced 2024-12-27 01:56:52 +00:00

[ustream] Checking errors

This commit is contained in:
Yen Chi Hsuan 2015-04-23 18:07:09 +08:00
parent f8610ba1ca
commit 762155cc90

View file

@ -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)