Skip to content

A feature-rich command-line audio/video downloader

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

Sergey M․01b1aa9ff408
diff --git a/youtube_dl/extractor/ondemandkorea.py b/youtube_dl/extractor/ondemandkorea.py
index dcd1577775..0c85d549ea 100644
--- a/youtube_dl/extractor/ondemandkorea.py
+++ b/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(