From 836017c01bd4ea61e08d67f97e3a01063172f1c0 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 6 May 2023 23:25:56 -0500 Subject: [PATCH] Revert argument exception swallowing for Plex library update Closes #8264 --- .../Plex/Server/PlexServerService.cs | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/NzbDrone.Core/Notifications/Plex/Server/PlexServerService.cs b/src/NzbDrone.Core/Notifications/Plex/Server/PlexServerService.cs index efec00e49..4fd661122 100644 --- a/src/NzbDrone.Core/Notifications/Plex/Server/PlexServerService.cs +++ b/src/NzbDrone.Core/Notifications/Plex/Server/PlexServerService.cs @@ -105,19 +105,12 @@ private void UpdateSections(Movie movie, List 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; } } }