Browse Source

only show "movie" and "show" libraries from Plex (#179)

pull/180/head
Jason Dove 5 years ago committed by GitHub
parent
commit
fedc18f7db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      ErsatzTV.Infrastructure/Plex/PlexServerApiClient.cs

1
ErsatzTV.Infrastructure/Plex/PlexServerApiClient.cs

@ -32,6 +32,7 @@ namespace ErsatzTV.Infrastructure.Plex @@ -32,6 +32,7 @@ namespace ErsatzTV.Infrastructure.Plex
await service.GetLibraries(token.AuthToken).Map(r => r.MediaContainer.Directory);
return directory
// .Filter(l => l.Hidden == 0)
.Filter(l => l.Type.ToLowerInvariant() is "movie" or "show")
.Map(Project)
.Somes()
.ToList();

Loading…
Cancel
Save