mirror of
https://github.com/Radarr/Radarr
synced 2025-12-25 17:52:43 +01:00
Support multiple tokens without breaking re-import/renames Radarr: #11174, relevant comment from Sonarr: https://github.com/Sonarr/Sonarr/pull/7982#issuecomment-3118258372
This commit is contained in:
parent
e29be26fc9
commit
e417082690
1 changed files with 6 additions and 1 deletions
|
|
@ -659,7 +659,12 @@ private string GetOriginalFileName(MovieFile movieFile, bool multipleTokens)
|
|||
{
|
||||
if (multipleTokens)
|
||||
{
|
||||
return string.Empty;
|
||||
if (movieFile.OriginalFilePath.IsNullOrWhiteSpace())
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
return Path.GetFileNameWithoutExtension(movieFile.OriginalFilePath);
|
||||
}
|
||||
|
||||
if (movieFile.RelativePath.IsNullOrWhiteSpace())
|
||||
|
|
|
|||
Loading…
Reference in a new issue