[dramafever] Improve geo restriction detection and use geo bypass mechanism

master
Sergey M․ 7 years ago committed by Sergey M
parent 773f291dcb
commit d392005a79

@ -116,8 +116,9 @@ class DramaFeverIE(DramaFeverBaseIE):
'http://www.dramafever.com/amp/episode/feed.json?guid=%s' % video_id) 'http://www.dramafever.com/amp/episode/feed.json?guid=%s' % video_id)
except ExtractorError as e: except ExtractorError as e:
if isinstance(e.cause, compat_HTTPError): if isinstance(e.cause, compat_HTTPError):
raise ExtractorError( self.raise_geo_restricted(
'Currently unavailable in your country.', expected=True) msg='Currently unavailable in your country',
countries=['US', 'CA'])
raise raise
series_id, episode_number = video_id.split('.') series_id, episode_number = video_id.split('.')

Loading…
Cancel
Save