youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit ee093a0ea04d973cc6dbd0d53b57c976a9e68dad
parent 9bb2c7673e45aee95023d980ff307d7a90ac58c0
Author: Sergey M․ <dstftw@gmail.com>
Date:   Sun, 15 Oct 2017 06:11:02 +0700

[anvato] Add ability to bypass geo restriction

Diffstat:
Myoutube_dl/extractor/anvato.py | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/youtube_dl/extractor/anvato.py b/youtube_dl/extractor/anvato.py @@ -18,6 +18,7 @@ from ..utils import ( int_or_none, strip_jsonp, unescapeHTML, + unsmuggle_url, ) @@ -275,6 +276,9 @@ class AnvatoIE(InfoExtractor): anvplayer_data['accessKey'], anvplayer_data['video']) def _real_extract(self, url): + url, smuggled_data = unsmuggle_url(url, {}) + self._initialize_geo_bypass(smuggled_data.get('geo_countries')) + mobj = re.match(self._VALID_URL, url) access_key, video_id = mobj.group('access_key_or_mcp', 'id') if access_key not in self._ANVACK_TABLE: