1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-25 11:41:52 +00:00

[scrippsnetworks:watch] Bypass geo restriction

This commit is contained in:
Sergey M․ 2017-10-15 06:11:35 +07:00
parent ee093a0ea0
commit 4827270526
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -10,6 +10,7 @@ import re
from .common import InfoExtractor from .common import InfoExtractor
from .anvato import AnvatoIE from .anvato import AnvatoIE
from ..utils import ( from ..utils import (
smuggle_url,
urlencode_postdata, urlencode_postdata,
xpath_text, xpath_text,
) )
@ -183,5 +184,7 @@ x-api-key:%(key)s
})['results'][0]['mcpId'] })['results'][0]['mcpId']
return self.url_result( 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) AnvatoIE.ie_key(), video_id=mcp_id)