mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-12 14:26:49 +01: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:
parent
6bf6962062
commit
6b445558ff
@ -191,8 +191,9 @@ def _confirm_age(self):
|
|||||||
def _real_initialize(self):
|
def _real_initialize(self):
|
||||||
if self._downloader is None:
|
if self._downloader is None:
|
||||||
return
|
return
|
||||||
if not self._set_language():
|
if self._get_login_info()[0] is not None:
|
||||||
return
|
if not self._set_language():
|
||||||
|
return
|
||||||
if not self._login():
|
if not self._login():
|
||||||
return
|
return
|
||||||
self._confirm_age()
|
self._confirm_age()
|
||||||
|
Loading…
Reference in New Issue
Block a user