mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-03 21:17:08 -05:00 
			
		
		
		
	[mixcloud] Shed API dependency (#2904)
This commit is contained in:
		@@ -556,6 +556,16 @@ class InfoExtractor(object):
 | 
			
		||||
            if self._downloader.params.get('prefer_insecure', False)
 | 
			
		||||
            else 'https:')
 | 
			
		||||
 | 
			
		||||
    def _proto_relative_url(self, url, scheme=None):
 | 
			
		||||
        if url is None:
 | 
			
		||||
            return url
 | 
			
		||||
        if url.startswith('//'):
 | 
			
		||||
            if scheme is None:
 | 
			
		||||
                scheme = self.http_scheme()
 | 
			
		||||
            return scheme + url
 | 
			
		||||
        else:
 | 
			
		||||
            return url
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class SearchInfoExtractor(InfoExtractor):
 | 
			
		||||
    """
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user