fix login (#202)

This commit is contained in:
bocchi 2023-05-13 12:19:44 -04:00 committed by GitHub
parent 61766c74fa
commit b24827dc6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -264,8 +264,8 @@ async fn crunchyroll_session(cli: &mut Cli) -> Result<Crunchyroll> {
let mut login_login_methods_count = 0; let mut login_login_methods_count = 0;
if let Command::Login(login) = &cli.command { if let Command::Login(login) = &cli.command {
login_login_methods_count += login.login_method.credentials.is_some() as u8 login_login_methods_count += login.login_method.credentials.is_some() as u8
+ cli.login_method.etp_rt.is_some() as u8 + login.login_method.etp_rt.is_some() as u8
+ cli.login_method.anonymous as u8 + login.login_method.anonymous as u8
} }
let progress_handler = progress!("Logging in"); let progress_handler = progress!("Logging in");