diff options
author | Sergey M․ <[email protected]> | 2017-10-15 06:11:35 +0700 |
---|---|---|
committer | Sergey M․ <[email protected]> | 2017-10-15 06:11:35 +0700 |
commit | 4827270526621cdabe74275deb38b04c2ef1b0d3 (patch) | |
tree | 776d056dbb315d07e3b3f10b0a3c071b9aa59b84 | |
parent | ee093a0ea04d973cc6dbd0d53b57c976a9e68dad (diff) | |
download | youtube-dl-4827270526621cdabe74275deb38b04c2ef1b0d3.tar.gz youtube-dl-4827270526621cdabe74275deb38b04c2ef1b0d3.zip |
[scrippsnetworks:watch] Bypass geo restriction
-rw-r--r-- | youtube_dl/extractor/scrippsnetworks.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/scrippsnetworks.py b/youtube_dl/extractor/scrippsnetworks.py index 411fef84c..b446a02ba 100644 --- a/youtube_dl/extractor/scrippsnetworks.py +++ b/youtube_dl/extractor/scrippsnetworks.py @@ -10,6 +10,7 @@ import re from .common import InfoExtractor from .anvato import AnvatoIE from ..utils import ( + smuggle_url, urlencode_postdata, xpath_text, ) @@ -183,5 +184,7 @@ x-api-key:%(key)s })['results'][0]['mcpId'] return self.url_result( - 'anvato:anvato_scripps_app_web_prod_0837996dbe373629133857ae9eb72e740424d80a:%s' % mcp_id, + smuggle_url( + 'anvato:anvato_scripps_app_web_prod_0837996dbe373629133857ae9eb72e740424d80a:%s' % mcp_id, + {'geo_countries': ['US']}), AnvatoIE.ie_key(), video_id=mcp_id) |