1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-01-10 23:29:53 +02:00

Fixed: Refreshing Plex library on a different OS

This commit is contained in:
Mark McDowall 2023-03-22 08:09:16 -07:00
parent cef6d5a99a
commit b8dcd75cf5

View File

@ -102,12 +102,19 @@ private void UpdateSections(Series series, List<PlexSection> sections, PlexServe
{
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
}
}
}