Browse Source

allow plex personal media show libraries (#1483)

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

1
CHANGELOG.md

@ -16,6 +16,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). @@ -16,6 +16,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- This will help with media server libraries where the URL passed to ffmpeg doesn't indicate which file is streaming
- Add QSV Capabilities to Troubleshooting page
- Add `language_tag` and `seconds` fields to search index
- Allow synchronizing Plex `TV Show` libraries that use `Personal Media Shows` agent
### Fixed
- Fix playout bug that caused some schedule items with fixed start times to be pushed to the next day

5
ErsatzTV.Infrastructure/Plex/PlexServerApiClient.cs

@ -52,8 +52,8 @@ public class PlexServerApiClient : IPlexServerApiClient @@ -52,8 +52,8 @@ public class PlexServerApiClient : IPlexServerApiClient
await service.GetLibraries(token.AuthToken).Map(r => r.MediaContainer.Directory);
return directory
// .Filter(l => l.Hidden == 0)
.Filter(l => (l.Agent ?? string.Empty).ToLowerInvariant() is not "com.plexapp.agents.none")
.Filter(l => l.Type.ToLowerInvariant() is "movie" or "show")
.Filter(l => l.Type.ToLowerInvariant() is not "movie" || (l.Agent ?? string.Empty).ToLowerInvariant() is not "com.plexapp.agents.none")
.Map(Project)
.Somes()
.ToList();
@ -1018,7 +1018,8 @@ public class PlexServerApiClient : IPlexServerApiClient @@ -1018,7 +1018,8 @@ public class PlexServerApiClient : IPlexServerApiClient
return $"tmdb://{strip2}";
}
if (guid.StartsWith("local://", StringComparison.OrdinalIgnoreCase))
if (guid.StartsWith("local://", StringComparison.OrdinalIgnoreCase) ||
guid.StartsWith("com.plexapp.agents.none://", StringComparison.OrdinalIgnoreCase))
{
// _logger.LogDebug("Ignoring local Plex guid: {Guid}", guid);
}

Loading…
Cancel
Save