mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[iprima] detect geo restriction
This commit is contained in:
		| @@ -81,6 +81,9 @@ class IPrimaIE(InfoExtractor): | |||||||
|             for _, src in re.findall(r'src["\']\s*:\s*(["\'])(.+?)\1', playerpage): |             for _, src in re.findall(r'src["\']\s*:\s*(["\'])(.+?)\1', playerpage): | ||||||
|                 extract_formats(src) |                 extract_formats(src) | ||||||
|  |  | ||||||
|  |         if not formats and '>GEO_IP_NOT_ALLOWED<' in playerpage: | ||||||
|  |             self.raise_geo_restricted() | ||||||
|  |  | ||||||
|         self._sort_formats(formats) |         self._sort_formats(formats) | ||||||
|  |  | ||||||
|         return { |         return { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Remita Amine
					Remita Amine