Skip to content

Commit

Permalink
fix: another movie exception
Browse files Browse the repository at this point in the history
- Also switch the type from movie to web if we're hidden the main movies, but the parts are normal episodes.
  • Loading branch information
revam committed May 18, 2024
1 parent 8a85de9 commit 03b2e9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Shokofin/API/Info/SeasonInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ public SeasonInfo(Series series, DateTime? earliestImportedAt, DateTime? lastImp
index++;
}
}
// Also switch the type from movie to web if we're hidden the main movies, but the parts are normal episodes.
else if (type == SeriesType.Movie && episodesList.Any(episodeInfo => string.Equals(episodeInfo.AniDB.Titles.FirstOrDefault(title => title.LanguageCode == "en")?.Value, "The Complete Movie", StringComparison.InvariantCultureIgnoreCase) && episodeInfo.Shoko.IsHidden)) {
type = SeriesType.Web;
}

if (Plugin.Instance.Configuration.MovieSpecialsAsExtraFeaturettes && type == SeriesType.Movie) {
if (specialsList.Count > 0) {
Expand Down

0 comments on commit 03b2e9d

Please sign in to comment.