mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 00:25:15 +00:00 
			
		
		
		
	[youtube] Fix protocol-independent URLs (Fixes #1768)
This commit is contained in:
		@@ -1019,6 +1019,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
 | 
				
			|||||||
        """Turn the encrypted s field into a working signature"""
 | 
					        """Turn the encrypted s field into a working signature"""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if player_url is not None:
 | 
					        if player_url is not None:
 | 
				
			||||||
 | 
					            if player_url.startswith(u'//'):
 | 
				
			||||||
 | 
					                player_url = u'https:' + player_url
 | 
				
			||||||
            try:
 | 
					            try:
 | 
				
			||||||
                player_id = (player_url, len(s))
 | 
					                player_id = (player_url, len(s))
 | 
				
			||||||
                if player_id not in self._player_cache:
 | 
					                if player_id not in self._player_cache:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user