Handle Jellyfin versions before 10.9

This commit is contained in:
Jendrik Weise 2023-07-28 07:54:27 +02:00
parent edd03afee7
commit 6634e46b8c
2 changed files with 4 additions and 25 deletions

View File

@ -1,23 +0,0 @@
using System;
using NzbDrone.Common.Exceptions;
namespace NzbDrone.Core.Notifications.Emby
{
public class MediaBrowserException : NzbDroneException
{
public MediaBrowserException(string message)
: base(message)
{
}
public MediaBrowserException(string message, params object[] args)
: base(message, args)
{
}
public MediaBrowserException(string message, Exception innerException)
: base(message, innerException)
{
}
}
}

View File

@ -92,9 +92,11 @@ namespace NzbDrone.Core.Notifications.Emby
return paths.ToHashSet();
}
catch (InvalidOperationException ex)
catch (InvalidOperationException)
{
throw new MediaBrowserException("Could not find series by name", ex);
_logger.Trace("Could not find series by name.");
return new HashSet<string>();
}
}