allow plex personal media show libraries (#1483)
This commit is contained in:
@@ -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
|
- 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 QSV Capabilities to Troubleshooting page
|
||||||
- Add `language_tag` and `seconds` fields to search index
|
- Add `language_tag` and `seconds` fields to search index
|
||||||
|
- Allow synchronizing Plex `TV Show` libraries that use `Personal Media Shows` agent
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Fix playout bug that caused some schedule items with fixed start times to be pushed to the next day
|
- 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);
|
await service.GetLibraries(token.AuthToken).Map(r => r.MediaContainer.Directory);
|
||||||
return directory
|
return directory
|
||||||
// .Filter(l => l.Hidden == 0)
|
// .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 "movie" or "show")
|
||||||
|
.Filter(l => l.Type.ToLowerInvariant() is not "movie" || (l.Agent ?? string.Empty).ToLowerInvariant() is not "com.plexapp.agents.none")
|
||||||
.Map(Project)
|
.Map(Project)
|
||||||
.Somes()
|
.Somes()
|
||||||
.ToList();
|
.ToList();
|
||||||
@@ -1018,7 +1018,8 @@ public class PlexServerApiClient : IPlexServerApiClient
|
|||||||
return $"tmdb://{strip2}";
|
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);
|
// _logger.LogDebug("Ignoring local Plex guid: {Guid}", guid);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user