fix(jellyfin-scanner): filter seasons based on settings for special episodes (regression)

This commit is contained in:
fallenbagel
2025-12-13 13:33:54 +08:00
parent 62b43b83f9
commit 537ef81eb6

View File

@@ -280,7 +280,12 @@ class JellyfinScanner
const processableSeasons: ProcessableSeason[] = [];
for (const season of seasons) {
const settings = getSettings();
const filteredSeasons = settings.main.enableSpecialEpisodes
? seasons
: seasons.filter((sn) => sn.season_number !== 0);
for (const season of filteredSeasons) {
const matchedJellyfinSeason = jellyfinSeasons.find((md) => {
if (tvdbSeasonFromAnidb) {
// In AniDB we don't have the concept of seasons,