Update dependencies

This commit is contained in:
bytedream 2023-07-08 16:36:35 +02:00
parent 1fe8746dda
commit 751735477c
5 changed files with 423 additions and 221 deletions

View file

@ -264,13 +264,15 @@ async fn crunchyroll_session(cli: &mut Cli) -> Result<Crunchyroll> {
lang
};
let mut client_builder = CrunchyrollBuilder::predefined_client_builder();
if let Some(proxy) = &cli.proxy {
client_builder = client_builder.proxy(proxy.clone())
}
let proxy = cli.proxy.clone();
let mut builder = Crunchyroll::builder()
.client(client_builder.build()?)
.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);