mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 04:02:00 -06:00
Update dependencies
This commit is contained in:
parent
dd2033d323
commit
566422cb06
4 changed files with 121 additions and 122 deletions
|
|
@ -264,22 +264,21 @@ async fn crunchyroll_session(cli: &mut Cli) -> Result<Crunchyroll> {
|
|||
lang
|
||||
};
|
||||
|
||||
let proxy = cli.proxy.clone();
|
||||
let mut builder = Crunchyroll::builder()
|
||||
.client_builder(move || {
|
||||
let mut client_builder = CrunchyrollBuilder::predefined_client_builder();
|
||||
if let Some(proxy) = &proxy {
|
||||
client_builder = client_builder.proxy(proxy.clone())
|
||||
}
|
||||
client_builder
|
||||
})
|
||||
.locale(locale)
|
||||
.stabilization_locales(cli.experimental_fixes)
|
||||
.stabilization_season_number(cli.experimental_fixes);
|
||||
|
||||
if let Command::Download(download) = &cli.command {
|
||||
builder = builder.preferred_audio_locale(download.audio.clone())
|
||||
}
|
||||
if let Some(p) = &cli.proxy {
|
||||
builder = builder.client(
|
||||
CrunchyrollBuilder::predefined_client_builder()
|
||||
.proxy(p.clone())
|
||||
.build()
|
||||
.unwrap(),
|
||||
)
|
||||
}
|
||||
|
||||
let root_login_methods_count = cli.login_method.credentials.is_some() as u8
|
||||
+ cli.login_method.etp_rt.is_some() as u8
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue