mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +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:
		| @@ -102,7 +102,9 @@ class DPlayIE(InfoExtractor): | ||||
|         display_id = mobj.group('id') | ||||
|         domain = mobj.group('domain') | ||||
|  | ||||
|         self._initialize_geo_bypass([mobj.group('country').upper()]) | ||||
|         self._initialize_geo_bypass({ | ||||
|             'countries': [mobj.group('country').upper()], | ||||
|         }) | ||||
|  | ||||
|         webpage = self._download_webpage(url, display_id) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․