[nick] Automate geo-restriction bypass (#13711)
authornyuszika7h <nyuszika7h@gmail.com>
Sun, 23 Jul 2017 13:40:04 +0000 (15:40 +0200)
committerSergey M <dstftw@gmail.com>
Sun, 23 Jul 2017 13:40:04 +0000 (20:40 +0700)
youtube_dl/extractor/nick.py

index 08a75929e1e049249759f94e6179cfa8932ba87c..1fa19cde4cffdb22050f11196cb60f539f1661a4 100644 (file)
@@ -12,6 +12,7 @@ class NickIE(MTVServicesInfoExtractor):
     IE_NAME = 'nick.com'
     _VALID_URL = r'https?://(?:(?:www|beta)\.)?nick(?:jr)?\.com/(?:[^/]+/)?(?:videos/clip|[^/]+/videos)/(?P<id>[^/?#.]+)'
     _FEED_URL = 'http://udat.mtvnservices.com/service1/dispatch.htm'
+    _GEO_COUNTRIES = ['US']
     _TESTS = [{
         'url': 'http://www.nick.com/videos/clip/alvinnn-and-the-chipmunks-112-full-episode.html',
         'playlist': [