|
|
@ -41,7 +41,12 @@ namespace NzbDrone.Core.MediaFiles
|
|
|
|
|
|
|
|
|
|
|
|
if (RelativePath.IsNotNullOrWhiteSpace())
|
|
|
|
if (RelativePath.IsNotNullOrWhiteSpace())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return System.IO.Path.GetFileName(RelativePath);
|
|
|
|
return System.IO.Path.GetFileNameWithoutExtension(RelativePath);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (Path.IsNotNullOrWhiteSpace())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return System.IO.Path.GetFileNameWithoutExtension(Path);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return string.Empty;
|
|
|
|
return string.Empty;
|
|
|
|