find working plex connection on startup (#438)

This commit is contained in:
Jason Dove
2021-10-16 11:55:54 -05:00
committed by GitHub
parent 67761c1a14
commit 1a68dd040a
7 changed files with 126 additions and 66 deletions
@@ -9,6 +9,10 @@ namespace ErsatzTV.Core.Interfaces.Plex
{
public interface IPlexServerApiClient
{
Task<bool> Ping(
PlexConnection connection,
PlexServerAuthToken token);
Task<Either<BaseError, List<PlexLibrary>>> GetLibraries(
PlexConnection connection,
PlexServerAuthToken token);
@@ -18,7 +18,6 @@ namespace ErsatzTV.Core.Interfaces.Repositories
Task Update(
PlexMediaSource plexMediaSource,
List<PlexConnection> prioritizedConnections,
List<PlexConnection> toAdd,
List<PlexConnection> toDelete);