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:
Jason Dove
2021-03-13 21:04:54 +00:00
committed by GitHub
parent a13f964200
commit aa938baec8
35 changed files with 602 additions and 132 deletions
+4 -7
View File
@@ -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}")
};