aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Library/LibraryManager.cs
diff options
context:
space:
mode:
authorcvium <clausvium@gmail.com>2021-04-09 13:28:27 +0200
committercvium <clausvium@gmail.com>2021-04-09 13:28:27 +0200
commite7fc18d0f31c5516889c9dbb65d3cb3421d8b271 (patch)
tree7229d589d755a917b5e38d871185f34a3e1e4d0b /Emby.Server.Implementations/Library/LibraryManager.cs
parent08ccf2a49cc5c67026b324570a975aa9adab8915 (diff)
Fix type check
Diffstat (limited to 'Emby.Server.Implementations/Library/LibraryManager.cs')
-rw-r--r--Emby.Server.Implementations/Library/LibraryManager.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.cs
index f92c30093..c69b8991b 100644
--- a/Emby.Server.Implementations/Library/LibraryManager.cs
+++ b/Emby.Server.Implementations/Library/LibraryManager.cs
@@ -2531,7 +2531,7 @@ namespace Emby.Server.Implementations.Library
{
episodeInfo = resolver.Resolve(episode.Path, isFolder, null, null, isAbsoluteNaming) ?? new EpisodeInfo(episode.Path);
// Resolve from parent folder if it's not the Season folder
- if (!episodeInfo.EpisodeNumber.HasValue && episode.Parent is not Season)
+ if (!episodeInfo.EpisodeNumber.HasValue && episode.Parent.GetType() == typeof(Folder))
{
var episodeInfoFromFolder = resolver.Resolve(Path.GetDirectoryName(episode.Path)!, true, null, null, isAbsoluteNaming);
// merge the missing information