youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit d392005a795a6cf85fda3c0f982254f8a2731e94
parent 773f291dcbce486fefe24e1abd29735d374d0a9e
Author: Sergey M․ <dstftw@gmail.com>
Date:   Sat,  4 Feb 2017 18:51:16 +0700

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

Diffstat:
Myoutube_dl/extractor/dramafever.py | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 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('.')