mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 00:25:15 +00:00 
			
		
		
		
	[youtube] Only set language when necessary
We only need to set the language when we are using a login; otherwise it will always be English.
This commit is contained in:
		@@ -191,6 +191,7 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
 | 
				
			|||||||
    def _real_initialize(self):
 | 
					    def _real_initialize(self):
 | 
				
			||||||
        if self._downloader is None:
 | 
					        if self._downloader is None:
 | 
				
			||||||
            return
 | 
					            return
 | 
				
			||||||
 | 
					        if self._get_login_info()[0] is not None:
 | 
				
			||||||
            if not self._set_language():
 | 
					            if not self._set_language():
 | 
				
			||||||
                return
 | 
					                return
 | 
				
			||||||
        if not self._login():
 | 
					        if not self._login():
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user