diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-07-11 22:32:06 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2021-07-11 22:51:36 +0200 |
| commit | 915141f196d6ec20f3f0a398d9b328f25ae71241 (patch) | |
| tree | cc1d390e28708f90b0fe42cc42b562e1872ef4e5 /Emby.Server.Implementations/Library/LibraryManager.cs | |
| parent | 203c46de33622c211d8d3262c243e95f1157bc68 (diff) | |
Fix some warnings
Diffstat (limited to 'Emby.Server.Implementations/Library/LibraryManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Library/LibraryManager.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.cs index d80637332..13fb8b2fd 100644 --- a/Emby.Server.Implementations/Library/LibraryManager.cs +++ b/Emby.Server.Implementations/Library/LibraryManager.cs @@ -2540,9 +2540,10 @@ namespace Emby.Server.Implementations.Library { episodeInfo = resolver.Resolve(episode.Path, isFolder, null, null, isAbsoluteNaming); // Resolve from parent folder if it's not the Season folder - if (episodeInfo == null && episode.Parent.GetType() == typeof(Folder)) + var parent = episode.GetParent(); + if (episodeInfo == null && parent.GetType() == typeof(Folder)) { - episodeInfo = resolver.Resolve(episode.Parent.Path, true, null, null, isAbsoluteNaming); + episodeInfo = resolver.Resolve(parent.Path, true, null, null, isAbsoluteNaming); if (episodeInfo != null) { // add the container |
