mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[extractor/common] Make _is_valid_url more relaxed
This commit is contained in:
		| @@ -1424,12 +1424,10 @@ class InfoExtractor(object): | |||||||
|         try: |         try: | ||||||
|             self._request_webpage(url, video_id, 'Checking %s URL' % item, headers=headers) |             self._request_webpage(url, video_id, 'Checking %s URL' % item, headers=headers) | ||||||
|             return True |             return True | ||||||
|         except ExtractorError as e: |         except ExtractorError: | ||||||
|             if isinstance(e.cause, compat_urllib_error.URLError): |             self.to_screen( | ||||||
|                 self.to_screen( |                 '%s: %s URL is invalid, skipping' % (video_id, item)) | ||||||
|                     '%s: %s URL is invalid, skipping' % (video_id, item)) |             return False | ||||||
|                 return False |  | ||||||
|             raise |  | ||||||
|  |  | ||||||
|     def http_scheme(self): |     def http_scheme(self): | ||||||
|         """ Either "http:" or "https:", depending on the user's preferences """ |         """ Either "http:" or "https:", depending on the user's preferences """ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․