mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 04:02:00 -06:00
Fix error when using etp-rt or anonymous flag after login command
This commit is contained in:
parent
850aa7a969
commit
6b76887978
1 changed files with 2 additions and 2 deletions
|
|
@ -335,9 +335,9 @@ async fn crunchyroll_session(cli: &mut Cli, config: &mut Config) -> Result<Crunc
|
|||
} else {
|
||||
bail!("Invalid credentials format. Please provide your credentials as user:password")
|
||||
}
|
||||
} else if let Some(etp_rt) = &cli.login_method.etp_rt {
|
||||
} else if let Some(etp_rt) = &login_method.etp_rt {
|
||||
builder.login_with_etp_rt(etp_rt).await?
|
||||
} else if cli.login_method.anonymous {
|
||||
} else if login_method.anonymous {
|
||||
builder.login_anonymously().await?
|
||||
} else {
|
||||
bail!("should never happen")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue