mirror of
https://github.com/Radarr/Radarr
synced 2025-12-06 16:32:36 +01:00
Merge e417082690 into b59ff0a3b1
This commit is contained in:
commit
e6fcc2116b
1 changed files with 6 additions and 1 deletions
|
|
@ -643,10 +643,15 @@ private string GetOriginalTitle(MovieFile movieFile, bool multipleTokens)
|
||||||
private string GetOriginalFileName(MovieFile movieFile, bool multipleTokens)
|
private string GetOriginalFileName(MovieFile movieFile, bool multipleTokens)
|
||||||
{
|
{
|
||||||
if (multipleTokens)
|
if (multipleTokens)
|
||||||
|
{
|
||||||
|
if (movieFile.OriginalFilePath.IsNullOrWhiteSpace())
|
||||||
{
|
{
|
||||||
return string.Empty;
|
return string.Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return Path.GetFileNameWithoutExtension(movieFile.OriginalFilePath);
|
||||||
|
}
|
||||||
|
|
||||||
if (movieFile.RelativePath.IsNullOrWhiteSpace())
|
if (movieFile.RelativePath.IsNullOrWhiteSpace())
|
||||||
{
|
{
|
||||||
return Path.GetFileNameWithoutExtension(movieFile.Path);
|
return Path.GetFileNameWithoutExtension(movieFile.Path);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue