Fix OAUTH_CUSTOM_FULL mode (#527)
* Fix OAUTH_CUSTOM_FULL mode * Fix OAUTH_CUSTOM_FULL mode
This commit is contained in:
parent
bb7a51e496
commit
8831090796
1 changed files with 3 additions and 1 deletions
|
|
@ -212,7 +212,9 @@ class YTMusicBase:
|
|||
if self.auth_type == AuthType.BROWSER:
|
||||
self._headers["authorization"] = get_authorization(self.sapisid + " " + self.origin)
|
||||
|
||||
elif self.auth_type in AuthType.oauth_types():
|
||||
# Do not set custom headers when using OAUTH_CUSTOM_FULL
|
||||
# Full headers are provided by the downstream client in this scenario.
|
||||
elif self.auth_type in [x for x in AuthType.oauth_types() if x != AuthType.OAUTH_CUSTOM_FULL]:
|
||||
self._headers["authorization"] = self._token.as_auth()
|
||||
self._headers["X-Goog-Request-Time"] = str(int(time.time()))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue