New: Use filename without extension if SceneName is unavailable for preferred words

Closes #4675
pull/4687/head
Alan Collins 3 years ago committed by GitHub
parent 0abd52d6be
commit 4bdb7fe795
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;

Loading…
Cancel
Save