mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 00:25:15 +00:00 
			
		
		
		
	[extractor/common] Assume non HTTP(S) URLs valid
This commit is contained in:
		@@ -767,6 +767,10 @@ class InfoExtractor(object):
 | 
				
			|||||||
                formats)
 | 
					                formats)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def _is_valid_url(self, url, video_id, item='video'):
 | 
					    def _is_valid_url(self, url, video_id, item='video'):
 | 
				
			||||||
 | 
					        url = self._proto_relative_url(url, scheme='http:')
 | 
				
			||||||
 | 
					        # For now assume non HTTP(S) URLs always valid
 | 
				
			||||||
 | 
					        if not (url.startswith('http://') or url.startswith('https://')):
 | 
				
			||||||
 | 
					            return True
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
            self._request_webpage(url, video_id, 'Checking %s URL' % item)
 | 
					            self._request_webpage(url, video_id, 'Checking %s URL' % item)
 | 
				
			||||||
            return True
 | 
					            return True
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user