mirror of https://github.com/Radarr/Radarr
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.
This commit is contained in:
parent
64e524633c
commit
20301bdb78
|
@ -16,7 +16,7 @@ namespace NzbDrone.Core.ImportLists.Radarr
|
||||||
public int Year { get; set; }
|
public int Year { get; set; }
|
||||||
public string TitleSlug { get; set; }
|
public string TitleSlug { get; set; }
|
||||||
public int QualityProfileId { get; set; }
|
public int QualityProfileId { get; set; }
|
||||||
public string RootFolderPath { get; set; }
|
public string Path { get; set; }
|
||||||
public HashSet<int> Tags { get; set; }
|
public HashSet<int> Tags { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ namespace NzbDrone.Core.ImportLists.Radarr
|
||||||
continue;
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue