projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8610ba
)
[ustream] Checking errors
author
Yen Chi Hsuan
<yan12125@gmail.com>
Thu, 23 Apr 2015 10:07:09 +0000
(18:07 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Thu, 23 Apr 2015 10:10:18 +0000
(18:10 +0800)
youtube_dl/extractor/ustream.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/ustream.py
b/youtube_dl/extractor/ustream.py
index d559e228a9afc81f5c6ddbc7fafe195599de265c..f8893b6cdc1dd7adbf7143bfdf6d5e7f604f3e98 100644
(file)
--- 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)