update dependencies (#2565)

* logging cleanup

* update dependencies
This commit is contained in:
Jason Dove
2025-10-24 09:17:45 -05:00
committed by GitHub
parent e590298b93
commit 545db4db9b
5 changed files with 5 additions and 29 deletions
@@ -1,7 +0,0 @@
namespace ErsatzTV.Core.Domain;
public class UnknownEmbyMediaItem : MediaItem
{
public string ItemType { get; set; }
public string ItemId { get; set; }
}
@@ -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<MediaItem>.None
};
}
catch (Exception ex)
@@ -14,7 +14,7 @@
<PackageReference Include="CliWrap" Version="3.9.0" />
<PackageReference Include="Dapper" Version="2.1.66" />
<PackageReference Include="EFCore.BulkExtensions" Version="9.0.2" />
<PackageReference Include="Elastic.Clients.Elasticsearch" Version="9.1.11" />
<PackageReference Include="Elastic.Clients.Elasticsearch" Version="9.2.0" />
<PackageReference Include="Jint" Version="4.4.1" />
<PackageReference Include="Lucene.Net" Version="4.8.0-beta00017" />
<PackageReference Include="Lucene.Net.Analysis.Common" Version="4.8.0-beta00017" />
@@ -83,10 +83,7 @@ public class EmbyCollectionScanner : IEmbyCollectionScanner
return Unit.Default;
}
private async Task<bool> SyncCollectionItems(
string address,
string apiKey,
EmbyCollection collection)
private async Task<bool> 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<string, int>();
// sync tags on items
var addedIds = new List<int>();
@@ -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)
// {
+1 -1
View File
@@ -28,7 +28,7 @@
<ItemGroup>
<PackageReference Include="Blazored.FluentValidation" Version="2.2.0" />
<PackageReference Include="BlazorSortable" Version="4.0.0" />
<PackageReference Include="BlazorSortable" Version="5.1.3" />
<PackageReference Include="Bugsnag.AspNet.Core" Version="4.1.0" />
<PackageReference Include="FluentValidation" Version="12.0.0" />
<PackageReference Include="FluentValidation.AspNetCore" Version="11.3.1" />