projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
release 2018.10.29
[youtube-dl]
/
youtube_dl
/
extractor
/
ondemandkorea.py
diff --git
a/youtube_dl/extractor/ondemandkorea.py
b/youtube_dl/extractor/ondemandkorea.py
index dcd157777514022a120e9aa446a6299f64518251..df1ce3c1db1eaa22d03609ddb55748e404b1f4a9 100644
(file)
--- a/
youtube_dl/extractor/ondemandkorea.py
+++ b/
youtube_dl/extractor/ondemandkorea.py
@@
-10,6
+10,7
@@
from ..utils import (
class OnDemandKoreaIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?ondemandkorea\.com/(?P<id>[^/]+)\.html'
class OnDemandKoreaIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?ondemandkorea\.com/(?P<id>[^/]+)\.html'
+ _GEO_COUNTRIES = ['US', 'CA']
_TEST = {
'url': 'http://www.ondemandkorea.com/ask-us-anything-e43.html',
'info_dict': {
_TEST = {
'url': 'http://www.ondemandkorea.com/ask-us-anything-e43.html',
'info_dict': {
@@
-35,7
+36,8
@@
class OnDemandKoreaIE(InfoExtractor):
if 'msg_block_01.png' in webpage:
self.raise_geo_restricted(
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=self._GEO_COUNTRIES)
if 'This video is only available to ODK PLUS members.' in webpage:
raise ExtractorError(
if 'This video is only available to ODK PLUS members.' in webpage:
raise ExtractorError(