From 4bdb7fe79525c46c04cada4daa04be25ef6d7381 Mon Sep 17 00:00:00 2001 From: Alan Collins Date: Tue, 5 Oct 2021 14:10:53 -0500 Subject: [PATCH] New: Use filename without extension if SceneName is unavailable for preferred words Closes #4675 --- src/NzbDrone.Core/MediaFiles/EpisodeFile.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/MediaFiles/EpisodeFile.cs b/src/NzbDrone.Core/MediaFiles/EpisodeFile.cs index 250bd7eec..c4da4cadd 100644 --- a/src/NzbDrone.Core/MediaFiles/EpisodeFile.cs +++ b/src/NzbDrone.Core/MediaFiles/EpisodeFile.cs @@ -41,12 +41,12 @@ namespace NzbDrone.Core.MediaFiles if (RelativePath.IsNotNullOrWhiteSpace()) { - return System.IO.Path.GetFileName(RelativePath); + return System.IO.Path.GetFileNameWithoutExtension(RelativePath); } if (Path.IsNotNullOrWhiteSpace()) { - return System.IO.Path.GetFileName(Path); + return System.IO.Path.GetFileNameWithoutExtension(Path); } return string.Empty;