Skip to content

Commit

Permalink
fix: fix episode type masking
Browse files Browse the repository at this point in the history
Fix the episode type masking i just broke in the last commit.
  • Loading branch information
revam committed Nov 15, 2024
1 parent 90454dc commit afe4899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shokofin/API/Info/SeasonInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public SeasonInfo(
if (episode.Shoko.IsHidden)
continue;
var seriesConfiguration = seriesConfigurationMap[episode.Shoko.IDs.ParentSeries.ToString()];
var episodeType = seriesConfiguration.EpisodesAsSpecials ? EpisodeType.Special : episode.AniDB.Type;
var episodeType = episode.AniDB.Type is EpisodeType.Normal && seriesConfiguration.EpisodesAsSpecials ? EpisodeType.Special : episode.AniDB.Type;
switch (episodeType) {
case EpisodeType.Normal:
episodesList.Add(episode);
Expand Down

0 comments on commit afe4899

Please sign in to comment.