mirror of
https://github.com/Radarr/Radarr
synced 2025-12-30 12:13:21 +01:00
Improve CF calculation for files without scene name
Fixed: Use original filename instead of complete path when calculating CF for existing file without scene name (cherry picked from commit 997aabbc3cfc3c9c5c220786d1d08cfceec5e2f2) Closes #8115
This commit is contained in:
parent
d9e337f2fb
commit
a39cafe404
1 changed files with 2 additions and 1 deletions
|
|
@ -168,13 +168,14 @@ private static List<CustomFormat> ParseCustomFormat(CustomFormatInput input, Lis
|
|||
private static List<CustomFormat> ParseCustomFormat(MovieFile movieFile, Movie movie, List<CustomFormat> allCustomFormats)
|
||||
{
|
||||
var releaseTitle = string.Empty;
|
||||
|
||||
if (movieFile.SceneName.IsNotNullOrWhiteSpace())
|
||||
{
|
||||
releaseTitle = movieFile.SceneName;
|
||||
}
|
||||
else if (movieFile.OriginalFilePath.IsNotNullOrWhiteSpace())
|
||||
{
|
||||
releaseTitle = movieFile.OriginalFilePath;
|
||||
releaseTitle = Path.GetFileName(movieFile.OriginalFilePath);
|
||||
}
|
||||
else if (movieFile.RelativePath.IsNotNullOrWhiteSpace())
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue