From b8dcd75cf5db3cedf9e2ca6516d8a99dfd74ee19 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 22 Mar 2023 08:09:16 -0700 Subject: [PATCH] Fixed: Refreshing Plex library on a different OS --- .../Plex/Server/PlexServerService.cs | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/NzbDrone.Core/Notifications/Plex/Server/PlexServerService.cs b/src/NzbDrone.Core/Notifications/Plex/Server/PlexServerService.cs index 30bf9fde3..e7ca5eeb5 100644 --- a/src/NzbDrone.Core/Notifications/Plex/Server/PlexServerService.cs +++ b/src/NzbDrone.Core/Notifications/Plex/Server/PlexServerService.cs @@ -102,12 +102,19 @@ namespace NzbDrone.Core.Notifications.Plex.Server { foreach (var location in section.Locations) { - if (location.Path.PathEquals(rootFolderPath)) + try { - _logger.Debug("Updating matching section location, {0}", location.Path); - UpdateSectionPath(seriesRelativePath, section, location, settings); + if (location.Path.PathEquals(rootFolderPath)) + { + _logger.Debug("Updating matching section location, {0}", location.Path); + UpdateSectionPath(seriesRelativePath, section, location, settings); - return; + return; + } + } + catch (ArgumentException) + { + // Swallow argument exception that is thrown by path comparison when comparing paths from different OSes } } }