mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Update dependencies
This commit is contained in:
parent
ce5672588e
commit
a32d3aef87
5 changed files with 124 additions and 23 deletions
|
|
@ -341,7 +341,7 @@ async fn formats_from_series(
|
|||
}
|
||||
|
||||
let streams = episode.streams().await?;
|
||||
let streaming_data = streams.streaming_data(None).await?;
|
||||
let streaming_data = streams.hls_streaming_data(None).await?;
|
||||
let Some(stream) = find_resolution(streaming_data, &archive.resolution) else {
|
||||
bail!(
|
||||
"Resolution ({}x{}) is not available for episode {} ({}) of season {} ({}) of {}",
|
||||
|
|
|
|||
|
|
@ -352,9 +352,9 @@ async fn format_from_episode(
|
|||
);
|
||||
return Ok(None);
|
||||
}
|
||||
streams.streaming_data(Some(subtitle.clone())).await?
|
||||
streams.hls_streaming_data(Some(subtitle.clone())).await?
|
||||
} else {
|
||||
streams.streaming_data(None).await?
|
||||
streams.hls_streaming_data(None).await?
|
||||
};
|
||||
|
||||
let Some(stream) = find_resolution(streaming_data, &download.resolution) else {
|
||||
|
|
@ -400,9 +400,9 @@ async fn format_from_movie(
|
|||
error!("Movie {} has no {} subtitles", movie.title, subtitle);
|
||||
return Ok(None);
|
||||
}
|
||||
streams.streaming_data(Some(subtitle.clone())).await?
|
||||
streams.hls_streaming_data(Some(subtitle.clone())).await?
|
||||
} else {
|
||||
streams.streaming_data(None).await?
|
||||
streams.hls_streaming_data(None).await?
|
||||
};
|
||||
|
||||
streaming_data.sort_by(|a, b| a.resolution.width.cmp(&b.resolution.width).reverse());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue