Browse Source

handle "other" jellyfin libraries (#192)

pull/193/head
Jason Dove 5 years ago committed by GitHub
parent
commit
34ebe9b006
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ErsatzTV.Application/Jellyfin/Commands/SynchronizeJellyfinAdminUserIdHandler.cs
  2. 2
      ErsatzTV.Infrastructure/Jellyfin/JellyfinApiClient.cs

2
ErsatzTV.Application/Jellyfin/Commands/SynchronizeJellyfinAdminUserIdHandler.cs

@ -57,7 +57,7 @@ namespace ErsatzTV.Application.Jellyfin.Commands
return await maybeUserId.Match( return await maybeUserId.Match(
userId => userId =>
{ {
_logger.LogDebug("Jellyfin admin user id is {UserId}", userId); // _logger.LogDebug("Jellyfin admin user id is {UserId}", userId);
_memoryCache.Set($"jellyfin_admin_user_id.{parameters.JellyfinMediaSource.Id}", userId); _memoryCache.Set($"jellyfin_admin_user_id.{parameters.JellyfinMediaSource.Id}", userId);
return Task.FromResult<Either<BaseError, Unit>>(Unit.Default); return Task.FromResult<Either<BaseError, Unit>>(Unit.Default);
}, },

2
ErsatzTV.Infrastructure/Jellyfin/JellyfinApiClient.cs

@ -196,7 +196,7 @@ namespace ErsatzTV.Infrastructure.Jellyfin
} }
private static Option<JellyfinLibrary> Project(JellyfinLibraryResponse response) => private static Option<JellyfinLibrary> Project(JellyfinLibraryResponse response) =>
response.CollectionType.ToLowerInvariant() switch response.CollectionType?.ToLowerInvariant() switch
{ {
"tvshows" => new JellyfinLibrary "tvshows" => new JellyfinLibrary
{ {

Loading…
Cancel
Save