fix: error 400 when fetching player with login

This commit is contained in:
ThetaDev 2024-12-20 03:06:03 +01:00
parent 30f60c30f9
commit 5ce84c44a6
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6
3 changed files with 24 additions and 2 deletions

View file

@ -1458,6 +1458,10 @@ impl RustyPipeQuery {
}
/// Enable authentication for this request
///
/// RustyPipe uses YouTube TV's OAuth authentication. This means that authentication
/// only works when using the TV client. Enabling authentication for other clients
/// results in a 400 error.
#[must_use]
pub fn authenticated(mut self) -> Self {
self.opts.auth = Some(true);