allow plex personal media show libraries (#1483)

This commit is contained in:
Jason Dove
2023-10-13 13:33:10 -05:00
committed by GitHub
parent 714f68a887
commit d3bdcf9bc4
2 changed files with 4 additions and 2 deletions
+1
View File
@@ -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
@@ -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
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);
}