From 20301bdb7811dfd000129808756fa776c0341839 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Erik=20Hel=C3=B8?= Date: Sun, 7 May 2023 17:08:48 +0200 Subject: [PATCH] Fix Radarr import syncing not matching any root folders. Old logic would look for a rootFolderPath in the API response from the source instance and try to match it to the selected root folders in list settings. Thiis property is returned by Sonarr, but Radarr only returns a full Path. --- src/NzbDrone.Core/ImportLists/Radarr/RadarrAPIResource.cs | 2 +- src/NzbDrone.Core/ImportLists/Radarr/RadarrImport.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/ImportLists/Radarr/RadarrAPIResource.cs b/src/NzbDrone.Core/ImportLists/Radarr/RadarrAPIResource.cs index 880c30778..b8582a291 100644 --- a/src/NzbDrone.Core/ImportLists/Radarr/RadarrAPIResource.cs +++ b/src/NzbDrone.Core/ImportLists/Radarr/RadarrAPIResource.cs @@ -16,7 +16,7 @@ namespace NzbDrone.Core.ImportLists.Radarr public int Year { get; set; } public string TitleSlug { get; set; } public int QualityProfileId { get; set; } - public string RootFolderPath { get; set; } + public string Path { get; set; } public HashSet Tags { get; set; } } diff --git a/src/NzbDrone.Core/ImportLists/Radarr/RadarrImport.cs b/src/NzbDrone.Core/ImportLists/Radarr/RadarrImport.cs index 83e583a18..31ef62444 100644 --- a/src/NzbDrone.Core/ImportLists/Radarr/RadarrImport.cs +++ b/src/NzbDrone.Core/ImportLists/Radarr/RadarrImport.cs @@ -51,7 +51,7 @@ namespace NzbDrone.Core.ImportLists.Radarr continue; } - if (Settings.RootFolderPaths.Any() && !Settings.RootFolderPaths.Any(rootFolderPath => remoteMovie.RootFolderPath.ContainsIgnoreCase(rootFolderPath))) + if (Settings.RootFolderPaths.Any() && !Settings.RootFolderPaths.Any(rootFolderPath => remoteMovie.Path.ContainsIgnoreCase(rootFolderPath))) { continue; }