mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	Improve geo bypass mechanism
* Introduce geo bypass context * Add ability to bypass based on IP blocks in CIDR notation * Introduce --geo-bypass-ip-block
This commit is contained in:
		| @@ -277,7 +277,9 @@ class AnvatoIE(InfoExtractor): | ||||
|  | ||||
|     def _real_extract(self, url): | ||||
|         url, smuggled_data = unsmuggle_url(url, {}) | ||||
|         self._initialize_geo_bypass(smuggled_data.get('geo_countries')) | ||||
|         self._initialize_geo_bypass({ | ||||
|             'countries': smuggled_data.get('geo_countries'), | ||||
|         }) | ||||
|  | ||||
|         mobj = re.match(self._VALID_URL, url) | ||||
|         access_key, video_id = mobj.group('access_key_or_mcp', 'id') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․