Update dependencies

This commit is contained in:
bytedream 2023-07-17 14:32:10 +02:00
parent dd2033d323
commit 566422cb06
4 changed files with 121 additions and 122 deletions

View file

@ -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