Fixed absolute episodes being being resolved and the tvdb provider not identifying them

Episode resolver will only consider absolute episodes (those without a
season) if the media type is TV Series for the collection.
This commit is contained in:
Thomas Gillen
2014-06-19 21:35:35 +01:00
parent 7f0b24758a
commit 6ef7e71caa
4 changed files with 30 additions and 31 deletions

View File

@@ -74,7 +74,7 @@ namespace MediaBrowser.Server.Implementations.Library.Resolvers.TV
return null;
}
if (args.ContainsMetaFileByName("series.xml") || filename.IndexOf("[tvdbid=", StringComparison.OrdinalIgnoreCase) != -1 || TVUtils.IsSeriesFolder(args.Path, args.FileSystemChildren, args.DirectoryService))
if (args.ContainsMetaFileByName("series.xml") || filename.IndexOf("[tvdbid=", StringComparison.OrdinalIgnoreCase) != -1 || TVUtils.IsSeriesFolder(args.Path, collectionType == CollectionType.TvShows, args.FileSystemChildren, args.DirectoryService))
{
return new Series();
}