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 {
|
} else {
|
||||||
bail!("Invalid credentials format. Please provide your credentials as user:password")
|
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?
|
builder.login_with_etp_rt(etp_rt).await?
|
||||||
} else if cli.login_method.anonymous {
|
} else if login_method.anonymous {
|
||||||
builder.login_anonymously().await?
|
builder.login_anonymously().await?
|
||||||
} else {
|
} else {
|
||||||
bail!("should never happen")
|
bail!("should never happen")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue