Fix interactive season choosing activation on url filter excluded seasons

This commit is contained in:
ByteDream 2023-01-08 18:06:37 +01:00
parent b65c0e9dfd
commit 13f54c0da6
2 changed files with 11 additions and 5 deletions

View file

@ -379,7 +379,10 @@ async fn formats_from_series(
.locale
.iter()
.any(|l| s.metadata.audio_locales.contains(l))
})
});
// remove seasons which match the url filter. this is mostly done to not trigger the
// interactive season choosing when dupilcated seasons are excluded by the filter
seasons.retain(|s| url_filter.is_season_valid(s.metadata.season_number))
}
if !archive.yes && !find_multiple_seasons_with_same_number(&seasons).is_empty() {