mirror of
https://github.com/Radarr/Radarr
synced 2025-12-29 11:48:51 +01:00
New: Use filename without extension if SceneName is unavailable
Fixe #6639
This commit is contained in:
parent
691a8955fe
commit
20c7e84676
1 changed files with 6 additions and 1 deletions
|
|
@ -41,7 +41,12 @@ public string GetSceneOrFileName()
|
|||
|
||||
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue