projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee093a0
)
[scrippsnetworks:watch] Bypass geo restriction
author
Sergey M․
<dstftw@gmail.com>
Sat, 14 Oct 2017 23:11:35 +0000
(06:11 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 14 Oct 2017 23:11:35 +0000
(06:11 +0700)
youtube_dl/extractor/scrippsnetworks.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/scrippsnetworks.py
b/youtube_dl/extractor/scrippsnetworks.py
index 411fef84cac6b5309ff8b6e7f04b54191afadbf7..b446a02bace5f3e2679db7579a38e106c4f681ad 100644
(file)
--- 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)