mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 20:30:41 -05:00
[ustream] Checking errors
This commit is contained in:
parent
f8610ba1ca
commit
762155cc90
1 changed files with 4 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
from ..compat import (
|
||||
compat_urlparse,
|
||||
)
|
||||
from ..utils import ExtractorError
|
||||
|
||||
|
||||
class UstreamIE(InfoExtractor):
|
||||
|
@ -47,6 +48,9 @@ def _real_extract(self, url):
|
|||
'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)
|
||||
|
|
Loading…
Reference in a new issue