mirror of
https://github.com/Radarr/Radarr.git
synced 2024-10-27 06:02:33 +01:00
Fixed: (Notifications) Calculate mapped path in Plex only when MapTo is not empty
This commit is contained in:
parent
24bd2ae59b
commit
e1d76689f7
@ -103,7 +103,14 @@ private void UpdateSections(Movie movie, List<PlexSection> sections, PlexServerS
|
|||||||
foreach (var location in section.Locations)
|
foreach (var location in section.Locations)
|
||||||
{
|
{
|
||||||
var rootFolder = new OsPath(rootFolderPath);
|
var rootFolder = new OsPath(rootFolderPath);
|
||||||
var mappedPath = new OsPath(settings.MapTo) + (rootFolder - new OsPath(settings.MapFrom));
|
var mappedPath = rootFolder;
|
||||||
|
|
||||||
|
if (settings.MapTo.IsNotNullOrWhiteSpace())
|
||||||
|
{
|
||||||
|
mappedPath = new OsPath(settings.MapTo) + (rootFolder - new OsPath(settings.MapFrom));
|
||||||
|
|
||||||
|
_logger.Trace("Mapping Path from {0} to {1} for partial scan", rootFolder, mappedPath);
|
||||||
|
}
|
||||||
|
|
||||||
if (location.Path.PathEquals(mappedPath.FullPath))
|
if (location.Path.PathEquals(mappedPath.FullPath))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user