1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-08-18 16:29:41 +02:00

Revert argument exception swallowing for Plex library update

Closes #8264
This commit is contained in:
Qstick 2023-05-06 23:25:56 -05:00
parent 85aac789f4
commit 836017c01b

View File

@ -105,19 +105,12 @@ private void UpdateSections(Movie movie, List<PlexSection> sections, PlexServerS
var rootFolder = new OsPath(rootFolderPath);
var mappedPath = new OsPath(settings.MapTo) + (rootFolder - new OsPath(settings.MapFrom));
try
if (location.Path.PathEquals(mappedPath.FullPath))
{
if (location.Path.PathEquals(mappedPath.FullPath))
{
_logger.Debug("Updating matching section location, {0}", location.Path);
UpdateSectionPath(movieRelativePath, section, location, settings);
_logger.Debug("Updating matching section location, {0}", location.Path);
UpdateSectionPath(movieRelativePath, section, location, settings);
return;
}
}
catch (ArgumentException)
{
// Swallow argument exception that is thrown by path comparison when comparing paths from different OSes
return;
}
}
}