This commit is contained in:
bytedream 2023-08-25 17:14:44 +02:00
parent e06e6b2b01
commit 3ae6fe4a1a
3 changed files with 6 additions and 4 deletions

View file

@ -185,7 +185,8 @@ async fn get_format(
single_format: &SingleFormat,
) -> Result<(DownloadFormat, Format)> {
let stream = single_format.stream().await?;
let Some((video, audio)) = variant_data_from_stream(&stream, &download.resolution).await? else {
let Some((video, audio)) = variant_data_from_stream(&stream, &download.resolution).await?
else {
if single_format.is_episode() {
bail!(
"Resolution ({}) is not available for episode {} ({}) of {} season {}",