mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-25 03:32:05 +00:00
[sohu] raise GeoRestrictedError
This commit is contained in:
parent
bc61c80c14
commit
c59f703610
1 changed files with 3 additions and 4 deletions
|
@ -108,12 +108,11 @@ class SohuIE(InfoExtractor):
|
||||||
if vid_data['play'] != 1:
|
if vid_data['play'] != 1:
|
||||||
if vid_data.get('status') == 12:
|
if vid_data.get('status') == 12:
|
||||||
raise ExtractorError(
|
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)
|
expected=True)
|
||||||
else:
|
else:
|
||||||
raise ExtractorError(
|
self.raise_geo_restricted(
|
||||||
'Sohu said: The video is only licensed to users in Mainland China.',
|
'%s said: The video is only licensed to users in Mainland China.' % self.IE_NAME)
|
||||||
expected=True)
|
|
||||||
|
|
||||||
formats_json = {}
|
formats_json = {}
|
||||||
for format_id in ('nor', 'high', 'super', 'ori', 'h2644k', 'h2654k'):
|
for format_id in ('nor', 'high', 'super', 'ori', 'h2644k', 'h2654k'):
|
||||||
|
|
Loading…
Reference in a new issue