From 7f361d1ea9a1f8da850d56bb7c22bcfcc799949a Mon Sep 17 00:00:00 2001 From: Jason Dove <1695733+jasongdove@users.noreply.github.com> Date: Fri, 16 Jan 2026 13:57:25 -0600 Subject: [PATCH] update dependencies (#2780) * update messaging * update dependencies --- ErsatzTV.Application/ErsatzTV.Application.csproj | 4 ++-- .../Commands/DeleteOrphanedArtworkHandler.cs | 12 ++++++++++-- ErsatzTV.Core.Tests/ErsatzTV.Core.Tests.csproj | 14 +++++++------- ErsatzTV.Core/ErsatzTV.Core.csproj | 12 ++++++------ .../ErsatzTV.FFmpeg.Tests.csproj | 6 +++--- ErsatzTV.FFmpeg/ErsatzTV.FFmpeg.csproj | 4 ++-- .../ErsatzTV.Infrastructure.MySql.csproj | 2 +- .../ErsatzTV.Infrastructure.Sqlite.csproj | 4 ++-- .../ErsatzTV.Infrastructure.Tests.csproj | 4 ++-- .../ErsatzTV.Infrastructure.csproj | 10 +++++----- .../ErsatzTV.Scanner.Tests.csproj | 4 ++-- ErsatzTV.Scanner/ErsatzTV.Scanner.csproj | 8 ++++---- ErsatzTV.Tests/ErsatzTV.Tests.csproj | 2 +- ErsatzTV/ErsatzTV.csproj | 16 ++++++++-------- 14 files changed, 55 insertions(+), 47 deletions(-) diff --git a/ErsatzTV.Application/ErsatzTV.Application.csproj b/ErsatzTV.Application/ErsatzTV.Application.csproj index eb2a971d2..fea5a50c3 100644 --- a/ErsatzTV.Application/ErsatzTV.Application.csproj +++ b/ErsatzTV.Application/ErsatzTV.Application.csproj @@ -14,8 +14,8 @@ - - + + diff --git a/ErsatzTV.Application/Maintenance/Commands/DeleteOrphanedArtworkHandler.cs b/ErsatzTV.Application/Maintenance/Commands/DeleteOrphanedArtworkHandler.cs index 627135be2..bf7077dae 100644 --- a/ErsatzTV.Application/Maintenance/Commands/DeleteOrphanedArtworkHandler.cs +++ b/ErsatzTV.Application/Maintenance/Commands/DeleteOrphanedArtworkHandler.cs @@ -1,8 +1,10 @@ -using System.IO.Abstractions; +using System.Globalization; +using System.IO.Abstractions; using ErsatzTV.Core; using ErsatzTV.Core.Interfaces.Repositories; using ErsatzTV.Infrastructure.Data; using ErsatzTV.Infrastructure.Images; +using Humanizer; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; @@ -93,6 +95,7 @@ public class DeleteOrphanedArtworkHandler( logger.LogDebug("Loaded {Count} artwork hashes (valid file names)", validFiles.Count); var deleted = 0; + long bytes = 0; foreach (string file in fileSystem.Directory.EnumerateFiles( FileSystemLayout.ArtworkCacheFolder, "*.*", @@ -103,6 +106,8 @@ public class DeleteOrphanedArtworkHandler( { try { + bytes += fileSystem.FileInfo.New(file).Length; + fileSystem.File.Delete(file); deleted++; } @@ -113,7 +118,10 @@ public class DeleteOrphanedArtworkHandler( } } - logger.LogDebug("Deleted {Count} unused artwork cache files", deleted); + logger.LogDebug( + "Deleted {Count} unused artwork cache files totaling {Size}", + deleted, + bytes.Bytes().Humanize(CultureInfo.CurrentCulture)); DeleteEmptySubfolders(FileSystemLayout.ArtworkCacheFolder); } diff --git a/ErsatzTV.Core.Tests/ErsatzTV.Core.Tests.csproj b/ErsatzTV.Core.Tests/ErsatzTV.Core.Tests.csproj index 423c165c1..eb34fb7fb 100644 --- a/ErsatzTV.Core.Tests/ErsatzTV.Core.Tests.csproj +++ b/ErsatzTV.Core.Tests/ErsatzTV.Core.Tests.csproj @@ -10,20 +10,20 @@ - - - - - + + + + + - + - + diff --git a/ErsatzTV.Core/ErsatzTV.Core.csproj b/ErsatzTV.Core/ErsatzTV.Core.csproj index c8eb6efd1..475fcd531 100644 --- a/ErsatzTV.Core/ErsatzTV.Core.csproj +++ b/ErsatzTV.Core/ErsatzTV.Core.csproj @@ -11,16 +11,16 @@ - + - - - - + + + + @@ -28,7 +28,7 @@ - + diff --git a/ErsatzTV.FFmpeg.Tests/ErsatzTV.FFmpeg.Tests.csproj b/ErsatzTV.FFmpeg.Tests/ErsatzTV.FFmpeg.Tests.csproj index 948ff2579..edb5e6a38 100644 --- a/ErsatzTV.FFmpeg.Tests/ErsatzTV.FFmpeg.Tests.csproj +++ b/ErsatzTV.FFmpeg.Tests/ErsatzTV.FFmpeg.Tests.csproj @@ -8,12 +8,12 @@ - - + + - + all diff --git a/ErsatzTV.FFmpeg/ErsatzTV.FFmpeg.csproj b/ErsatzTV.FFmpeg/ErsatzTV.FFmpeg.csproj index 39552fad2..f321949d0 100644 --- a/ErsatzTV.FFmpeg/ErsatzTV.FFmpeg.csproj +++ b/ErsatzTV.FFmpeg/ErsatzTV.FFmpeg.csproj @@ -15,8 +15,8 @@ - - + + diff --git a/ErsatzTV.Infrastructure.MySql/ErsatzTV.Infrastructure.MySql.csproj b/ErsatzTV.Infrastructure.MySql/ErsatzTV.Infrastructure.MySql.csproj index 882276672..bf535fe04 100644 --- a/ErsatzTV.Infrastructure.MySql/ErsatzTV.Infrastructure.MySql.csproj +++ b/ErsatzTV.Infrastructure.MySql/ErsatzTV.Infrastructure.MySql.csproj @@ -17,7 +17,7 @@ - + diff --git a/ErsatzTV.Infrastructure.Sqlite/ErsatzTV.Infrastructure.Sqlite.csproj b/ErsatzTV.Infrastructure.Sqlite/ErsatzTV.Infrastructure.Sqlite.csproj index f879eba9e..3049cfa83 100644 --- a/ErsatzTV.Infrastructure.Sqlite/ErsatzTV.Infrastructure.Sqlite.csproj +++ b/ErsatzTV.Infrastructure.Sqlite/ErsatzTV.Infrastructure.Sqlite.csproj @@ -14,8 +14,8 @@ - - + + diff --git a/ErsatzTV.Infrastructure.Tests/ErsatzTV.Infrastructure.Tests.csproj b/ErsatzTV.Infrastructure.Tests/ErsatzTV.Infrastructure.Tests.csproj index 7000e0ac4..dccbd50ee 100644 --- a/ErsatzTV.Infrastructure.Tests/ErsatzTV.Infrastructure.Tests.csproj +++ b/ErsatzTV.Infrastructure.Tests/ErsatzTV.Infrastructure.Tests.csproj @@ -12,7 +12,7 @@ - + runtime; build; native; contentfiles; analyzers; buildtransitive all @@ -22,7 +22,7 @@ all - + diff --git a/ErsatzTV.Infrastructure/ErsatzTV.Infrastructure.csproj b/ErsatzTV.Infrastructure/ErsatzTV.Infrastructure.csproj index e0e092371..bcad29d01 100644 --- a/ErsatzTV.Infrastructure/ErsatzTV.Infrastructure.csproj +++ b/ErsatzTV.Infrastructure/ErsatzTV.Infrastructure.csproj @@ -15,20 +15,20 @@ - + - + - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/ErsatzTV.Scanner.Tests/ErsatzTV.Scanner.Tests.csproj b/ErsatzTV.Scanner.Tests/ErsatzTV.Scanner.Tests.csproj index f1ef18a4a..c65a5651b 100644 --- a/ErsatzTV.Scanner.Tests/ErsatzTV.Scanner.Tests.csproj +++ b/ErsatzTV.Scanner.Tests/ErsatzTV.Scanner.Tests.csproj @@ -13,7 +13,7 @@ - + runtime; build; native; contentfiles; analyzers; buildtransitive all @@ -23,7 +23,7 @@ all - + diff --git a/ErsatzTV.Scanner/ErsatzTV.Scanner.csproj b/ErsatzTV.Scanner/ErsatzTV.Scanner.csproj index c90fbac79..43a4a0862 100644 --- a/ErsatzTV.Scanner/ErsatzTV.Scanner.csproj +++ b/ErsatzTV.Scanner/ErsatzTV.Scanner.csproj @@ -25,16 +25,16 @@ - - - + + + - + diff --git a/ErsatzTV.Tests/ErsatzTV.Tests.csproj b/ErsatzTV.Tests/ErsatzTV.Tests.csproj index 66f7b764b..abe870896 100644 --- a/ErsatzTV.Tests/ErsatzTV.Tests.csproj +++ b/ErsatzTV.Tests/ErsatzTV.Tests.csproj @@ -16,7 +16,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/ErsatzTV/ErsatzTV.csproj b/ErsatzTV/ErsatzTV.csproj index b79c98562..67e2b4313 100644 --- a/ErsatzTV/ErsatzTV.csproj +++ b/ErsatzTV/ErsatzTV.csproj @@ -40,23 +40,23 @@ - - - - - - + + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive - +