Skip to content

The Free Software Media System - Server Backend & API

fix support for episodes in a series folder

Luke Pulverenti51954a283f1f
diff --git a/MediaBrowser.Server.Implementations/Library/Resolvers/TV/EpisodeResolver.cs b/MediaBrowser.Server.Implementations/Library/Resolvers/TV/EpisodeResolver.cs
index d8af929919..5b9e739964 100644
--- a/MediaBrowser.Server.Implementations/Library/Resolvers/TV/EpisodeResolver.cs
+++ b/MediaBrowser.Server.Implementations/Library/Resolvers/TV/EpisodeResolver.cs
@@ -35,7 +35,7 @@ namespace MediaBrowser.Server.Implementations.Library.Resolvers.TV
}
// If the parent is a Season or Series, then this is an Episode if the VideoResolver returns something
- if (season != null || parent.Parents.OfType<Series>().Any())
+ if (season != null || parent is Series || parent.Parents.OfType<Series>().Any())
{
Episode episode = null;