From 545db4db9b6d2a45d362304eb829800e0453b6d4 Mon Sep 17 00:00:00 2001 From: Jason Dove <1695733+jasongdove@users.noreply.github.com> Date: Fri, 24 Oct 2025 09:17:45 -0500 Subject: [PATCH] update dependencies (#2565) * logging cleanup * update dependencies --- .../Domain/MediaItem/UknownEmbyMediaItem.cs | 7 ------- ErsatzTV.Infrastructure/Emby/EmbyApiClient.cs | 4 ++-- .../ErsatzTV.Infrastructure.csproj | 2 +- .../Core/Emby/EmbyCollectionScanner.cs | 19 +------------------ ErsatzTV/ErsatzTV.csproj | 2 +- 5 files changed, 5 insertions(+), 29 deletions(-) delete mode 100644 ErsatzTV.Core/Domain/MediaItem/UknownEmbyMediaItem.cs diff --git a/ErsatzTV.Core/Domain/MediaItem/UknownEmbyMediaItem.cs b/ErsatzTV.Core/Domain/MediaItem/UknownEmbyMediaItem.cs deleted file mode 100644 index 587383046..000000000 --- a/ErsatzTV.Core/Domain/MediaItem/UknownEmbyMediaItem.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace ErsatzTV.Core.Domain; - -public class UnknownEmbyMediaItem : MediaItem -{ - public string ItemType { get; set; } - public string ItemId { get; set; } -} diff --git a/ErsatzTV.Infrastructure/Emby/EmbyApiClient.cs b/ErsatzTV.Infrastructure/Emby/EmbyApiClient.cs index b5934755d..9b955302d 100644 --- a/ErsatzTV.Infrastructure/Emby/EmbyApiClient.cs +++ b/ErsatzTV.Infrastructure/Emby/EmbyApiClient.cs @@ -137,7 +137,7 @@ public class EmbyApiClient : IEmbyApiClient if (_memoryCache.TryGetValue("emby_collections_library_item_id", out string itemId)) { - _logger.LogDebug("Emby collections library item id is {ItemId}", itemId); + //_logger.LogDebug("Emby collections library item id is {ItemId}", itemId); return GetPagedLibraryContents( address, @@ -326,7 +326,7 @@ public class EmbyApiClient : IEmbyApiClient "Series" => new EmbyShow { ItemId = item.Id }, "Season" => new EmbySeason { ItemId = item.Id }, "Episode" => new EmbyEpisode { ItemId = item.Id }, - _ => new UnknownEmbyMediaItem { ItemId = item.Id, ItemType = item.Type } + _ => Option.None }; } catch (Exception ex) diff --git a/ErsatzTV.Infrastructure/ErsatzTV.Infrastructure.csproj b/ErsatzTV.Infrastructure/ErsatzTV.Infrastructure.csproj index 53d54075d..9a0e15d81 100644 --- a/ErsatzTV.Infrastructure/ErsatzTV.Infrastructure.csproj +++ b/ErsatzTV.Infrastructure/ErsatzTV.Infrastructure.csproj @@ -14,7 +14,7 @@ - + diff --git a/ErsatzTV.Scanner/Core/Emby/EmbyCollectionScanner.cs b/ErsatzTV.Scanner/Core/Emby/EmbyCollectionScanner.cs index c342a0ed8..b0a3e0f26 100644 --- a/ErsatzTV.Scanner/Core/Emby/EmbyCollectionScanner.cs +++ b/ErsatzTV.Scanner/Core/Emby/EmbyCollectionScanner.cs @@ -83,10 +83,7 @@ public class EmbyCollectionScanner : IEmbyCollectionScanner return Unit.Default; } - private async Task SyncCollectionItems( - string address, - string apiKey, - EmbyCollection collection) + private async Task SyncCollectionItems(string address, string apiKey, EmbyCollection collection) { try { @@ -102,7 +99,6 @@ public class EmbyCollectionScanner : IEmbyCollectionScanner var shows = 0; var seasons = 0; var episodes = 0; - var otherTypes = new Dictionary(); // sync tags on items var addedIds = new List(); @@ -129,14 +125,6 @@ public class EmbyCollectionScanner : IEmbyCollectionScanner break; } } - - if (item is UnknownEmbyMediaItem unk) - { - if (!otherTypes.TryAdd(unk.ItemType, 1)) - { - otherTypes[unk.ItemType]++; - } - } } if (addedIds.Count > 0) @@ -155,11 +143,6 @@ public class EmbyCollectionScanner : IEmbyCollectionScanner _logger.LogDebug("Emby collection {Name} contains no items that are also in ErsatzTV", collection.Name); } - if (otherTypes.Count > 0) - { - _logger.LogDebug("Emby returned unsupported collection items {Items}", otherTypes); - } - int[] changedIds = removedIds.Concat(addedIds).Distinct().ToArray(); // if (changedIds.Length > 0) // { diff --git a/ErsatzTV/ErsatzTV.csproj b/ErsatzTV/ErsatzTV.csproj index 98fe14b41..1fa1884e2 100644 --- a/ErsatzTV/ErsatzTV.csproj +++ b/ErsatzTV/ErsatzTV.csproj @@ -28,7 +28,7 @@ - +