ソースを参照

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

Sergey M․ 8 年 前
コミット
01b1aa9ff4
1 ファイル変更2 行追加1 行削除
  1. 2 1
      youtube_dl/extractor/ondemandkorea.py

+ 2 - 1
youtube_dl/extractor/ondemandkorea.py

@@ -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(