Browse Source

[scrippsnetworks:watch] Bypass geo restriction

master-ytdl-org
Sergey M․ 7 years ago
parent
commit
4827270526
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      youtube_dl/extractor/scrippsnetworks.py

+ 4
- 1
youtube_dl/extractor/scrippsnetworks.py View File

@ -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)

Loading…
Cancel
Save