mirror of
https://github.com/Sonarr/Sonarr
synced 2026-05-08 13:01:10 +02:00
Fixed: Refreshing Plex library on a different OS
This commit is contained in:
parent
cef6d5a99a
commit
b8dcd75cf5
1 changed files with 11 additions and 4 deletions
|
|
@ -101,6 +101,8 @@ private void UpdateSections(Series series, List<PlexSection> sections, PlexServe
|
||||||
foreach (var section in sections)
|
foreach (var section in sections)
|
||||||
{
|
{
|
||||||
foreach (var location in section.Locations)
|
foreach (var location in section.Locations)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
if (location.Path.PathEquals(rootFolderPath))
|
if (location.Path.PathEquals(rootFolderPath))
|
||||||
{
|
{
|
||||||
|
|
@ -110,6 +112,11 @@ private void UpdateSections(Series series, List<PlexSection> sections, PlexServe
|
||||||
return;
|
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");
|
_logger.Debug("Unable to find matching section location, updating all TV sections");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue