From: Sergey M․ Date: Sat, 4 Feb 2017 11:51:16 +0000 (+0700) Subject: [dramafever] Improve geo restriction detection and use geo bypass mechanism X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=d392005a795a6cf85fda3c0f982254f8a2731e94;p=youtube-dl [dramafever] Improve geo restriction detection and use geo bypass mechanism --- diff --git a/youtube_dl/extractor/dramafever.py b/youtube_dl/extractor/dramafever.py index bcd9fe2a0..755db806a 100644 --- a/youtube_dl/extractor/dramafever.py +++ b/youtube_dl/extractor/dramafever.py @@ -116,8 +116,9 @@ class DramaFeverIE(DramaFeverBaseIE): 'http://www.dramafever.com/amp/episode/feed.json?guid=%s' % video_id) except ExtractorError as e: if isinstance(e.cause, compat_HTTPError): - raise ExtractorError( - 'Currently unavailable in your country.', expected=True) + self.raise_geo_restricted( + msg='Currently unavailable in your country', + countries=['US', 'CA']) raise series_id, episode_number = video_id.split('.')