]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[ondemandkorea] Improve geo restriction detection and use geo bypass mechanism
authorSergey M․ <dstftw@gmail.com>
Sat, 4 Feb 2017 11:52:11 +0000 (18:52 +0700)
committerSergey M <dstftw@gmail.com>
Sat, 18 Feb 2017 21:10:08 +0000 (05:10 +0800)
youtube_dl/extractor/ondemandkorea.py

index dcd157777514022a120e9aa446a6299f64518251..0c85d549eae76134337abed9eb1901ef4388258a 100644 (file)
@@ -35,7 +35,8 @@ class OnDemandKoreaIE(InfoExtractor):
 
         if 'msg_block_01.png' in webpage:
             self.raise_geo_restricted(
-                'This content is not available in your region')
+                msg='This content is not available in your region',
+                countries=['US', 'CA'])
 
         if 'This video is only available to ODK PLUS members.' in webpage:
             raise ExtractorError(