projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[youtube] Improve chapters extraction (closes #13247)
[youtube-dl]
/
youtube_dl
/
extractor
/
sohu.py
diff --git
a/youtube_dl/extractor/sohu.py
b/youtube_dl/extractor/sohu.py
index 30760ca06be4b3fc112f3fe0200c74b665d64855..7da12cef8fe1c06a064ee82da3e08ed39a39991d 100644
(file)
--- a/
youtube_dl/extractor/sohu.py
+++ b/
youtube_dl/extractor/sohu.py
@@
-108,12
+108,11
@@
class SohuIE(InfoExtractor):
if vid_data['play'] != 1:
if vid_data.get('status') == 12:
raise ExtractorError(
if vid_data['play'] != 1:
if vid_data.get('status') == 12:
raise ExtractorError(
- '
Sohu said: There\'s something wrong in the video.'
,
+ '
%s said: There\'s something wrong in the video.' % self.IE_NAME
,
expected=True)
else:
expected=True)
else:
- raise ExtractorError(
- 'Sohu said: The video is only licensed to users in Mainland China.',
- expected=True)
+ self.raise_geo_restricted(
+ '%s said: The video is only licensed to users in Mainland China.' % self.IE_NAME)
formats_json = {}
for format_id in ('nor', 'high', 'super', 'ori', 'h2644k', 'h2654k'):
formats_json = {}
for format_id in ('nor', 'high', 'super', 'ori', 'h2644k', 'h2654k'):