mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[vk] Catch ownership confirmation request
This commit is contained in:
		| @@ -156,6 +156,11 @@ class VKIE(InfoExtractor): | |||||||
|         info_url = 'https://vk.com/al_video.php?act=show&al=1&module=video&video=%s' % video_id |         info_url = 'https://vk.com/al_video.php?act=show&al=1&module=video&video=%s' % video_id | ||||||
|         info_page = self._download_webpage(info_url, video_id) |         info_page = self._download_webpage(info_url, video_id) | ||||||
|  |  | ||||||
|  |         if re.search(r'<!>/login\.php\?.*\bact=security_check', info_page): | ||||||
|  |             raise ExtractorError( | ||||||
|  |                 'You are trying to log in from an unusual location. You should confirm ownership at vk.com to log in with this IP.', | ||||||
|  |                 expected=True) | ||||||
|  |  | ||||||
|         ERRORS = { |         ERRORS = { | ||||||
|             r'>Видеозапись .*? была изъята из публичного доступа в связи с обращением правообладателя.<': |             r'>Видеозапись .*? была изъята из публичного доступа в связи с обращением правообладателя.<': | ||||||
|             'Video %s has been removed from public access due to rightholder complaint.', |             'Video %s has been removed from public access due to rightholder complaint.', | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․