You've already forked Sonarr
mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-07-13 01:20:22 +02:00
Fixed: Refreshing Plex library on a different OS
This commit is contained in:
@ -101,6 +101,8 @@ namespace NzbDrone.Core.Notifications.Plex.Server
|
||||
foreach (var section in sections)
|
||||
{
|
||||
foreach (var location in section.Locations)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (location.Path.PathEquals(rootFolderPath))
|
||||
{
|
||||
@ -110,6 +112,11 @@ namespace NzbDrone.Core.Notifications.Plex.Server
|
||||
return;
|
||||
}
|
||||
}
|
||||
catch (ArgumentException)
|
||||
{
|
||||
// Swallow argument exception that is thrown by path comparison when comparing paths from different OSes
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
_logger.Debug("Unable to find matching section location, updating all TV sections");
|
||||
|
Reference in New Issue
Block a user