Browse Source

update dependencies (#2565)

* logging cleanup

* update dependencies
pull/2566/head
Jason Dove 9 months ago committed by GitHub
parent
commit
545db4db9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 7
      ErsatzTV.Core/Domain/MediaItem/UknownEmbyMediaItem.cs
  2. 4
      ErsatzTV.Infrastructure/Emby/EmbyApiClient.cs
  3. 2
      ErsatzTV.Infrastructure/ErsatzTV.Infrastructure.csproj
  4. 19
      ErsatzTV.Scanner/Core/Emby/EmbyCollectionScanner.cs
  5. 2
      ErsatzTV/ErsatzTV.csproj

7
ErsatzTV.Core/Domain/MediaItem/UknownEmbyMediaItem.cs

@ -1,7 +0,0 @@ @@ -1,7 +0,0 @@
namespace ErsatzTV.Core.Domain;
public class UnknownEmbyMediaItem : MediaItem
{
public string ItemType { get; set; }
public string ItemId { get; set; }
}

4
ErsatzTV.Infrastructure/Emby/EmbyApiClient.cs

@ -137,7 +137,7 @@ public class EmbyApiClient : IEmbyApiClient @@ -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 @@ -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)

2
ErsatzTV.Infrastructure/ErsatzTV.Infrastructure.csproj

@ -14,7 +14,7 @@ @@ -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" />

19
ErsatzTV.Scanner/Core/Emby/EmbyCollectionScanner.cs

@ -83,10 +83,7 @@ public class EmbyCollectionScanner : IEmbyCollectionScanner @@ -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 @@ -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 @@ -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 @@ -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)
// {

2
ErsatzTV/ErsatzTV.csproj

@ -28,7 +28,7 @@ @@ -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" />

Loading…
Cancel
Save