aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-05-24 20:42:12 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-05-24 20:42:12 -0400
commit77dc47df0c2b7e3f81ebd2c48c4cf84afb518612 (patch)
tree9bc13dcd0ab41a3e905fb4bd258b7dff33e5b7ea /MediaBrowser.Controller
parent6bb6e0ff849e09fa39281adf6001599c0a73f979 (diff)
deprecate provider options
Diffstat (limited to 'MediaBrowser.Controller')
-rw-r--r--MediaBrowser.Controller/Entities/TV/Series.cs17
1 files changed, 13 insertions, 4 deletions
diff --git a/MediaBrowser.Controller/Entities/TV/Series.cs b/MediaBrowser.Controller/Entities/TV/Series.cs
index 6c499f618..e79c465a1 100644
--- a/MediaBrowser.Controller/Entities/TV/Series.cs
+++ b/MediaBrowser.Controller/Entities/TV/Series.cs
@@ -446,9 +446,13 @@ namespace MediaBrowser.Controller.Entities.TV
{
return true;
}
+ if (!i.ParentIndexNumber.HasValue)
+ {
+ var season = i.Season;
+ return season != null && string.Equals(season.PresentationUniqueKey, seasonPresentationKey, StringComparison.OrdinalIgnoreCase);
+ }
- var season = i.Season;
- return season != null && string.Equals(season.PresentationUniqueKey, seasonPresentationKey, StringComparison.OrdinalIgnoreCase);
+ return false;
});
}
else
@@ -464,8 +468,13 @@ namespace MediaBrowser.Controller.Entities.TV
return true;
}
- var season = episode.Season;
- return season != null && string.Equals(season.PresentationUniqueKey, seasonPresentationKey, StringComparison.OrdinalIgnoreCase);
+ if (!episode.ParentIndexNumber.HasValue)
+ {
+ var season = episode.Season;
+ return season != null && string.Equals(season.PresentationUniqueKey, seasonPresentationKey, StringComparison.OrdinalIgnoreCase);
+ }
+
+ return false;
});
}
}