enable plex for movies (#72)
* re-enable plex, temp force secure connections * add plex fanart * synchronize genre from plex * fix plex library sync * improve stream error handling * synchronize plex artwork * use switch instead of button * prioritize local connections for insecure plex sources * sign out of plex * better plex sign in/out * code cleanup * fix plex movie aspect ratio and scan type
This commit is contained in:
@@ -46,13 +46,7 @@ namespace ErsatzTV.Services
|
||||
FileSystemLayout.PlexSecretsPath);
|
||||
|
||||
// synchronize sources on startup
|
||||
List<PlexMediaSource> sources = await SynchronizeSources(
|
||||
new SynchronizePlexMediaSources(),
|
||||
cancellationToken);
|
||||
foreach (PlexMediaSource source in sources)
|
||||
{
|
||||
await SynchronizeLibraries(new SynchronizePlexLibraries(source.Id), cancellationToken);
|
||||
}
|
||||
await SynchronizeSources(new SynchronizePlexMediaSources(), cancellationToken);
|
||||
|
||||
await foreach (IPlexBackgroundServiceRequest request in _channel.ReadAllAsync(cancellationToken))
|
||||
{
|
||||
@@ -64,6 +58,9 @@ namespace ErsatzTV.Services
|
||||
SynchronizePlexMediaSources sourcesRequest => SynchronizeSources(
|
||||
sourcesRequest,
|
||||
cancellationToken),
|
||||
SynchronizePlexLibraries synchronizePlexLibrariesRequest => SynchronizeLibraries(
|
||||
synchronizePlexLibrariesRequest,
|
||||
cancellationToken),
|
||||
_ => throw new NotSupportedException($"Unsupported request type: {request.GetType().Name}")
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user