aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-02-04 18:51:16 +0700
committerSergey M <dstftw@gmail.com>2017-02-19 05:10:08 +0800
commitd392005a795a6cf85fda3c0f982254f8a2731e94 (patch)
tree3312b2ad6eb2368dcf52a03adb18deaaa698e9c6 /youtube_dl
parent773f291dcbce486fefe24e1abd29735d374d0a9e (diff)
[dramafever] Improve geo restriction detection and use geo bypass mechanism
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/dramafever.py5
1 files changed, 3 insertions, 2 deletions
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('.')