aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Migrations/Routines/MoveExtractedFiles.cs
diff options
context:
space:
mode:
authorJPVenson <github@jpb.email>2025-06-05 17:59:11 +0300
committerGitHub <noreply@github.com>2025-06-05 08:59:11 -0600
commit88332e89c458266bc073d3304eafcb23603f15fa (patch)
treef067cdc997219a1a15e11356ef7aa31b466d7bba /Jellyfin.Server/Migrations/Routines/MoveExtractedFiles.cs
parenta3578caa8c71c84b278e18a07ebc157bcf04c687 (diff)
Feature/version check in library migration (#14105)
Diffstat (limited to 'Jellyfin.Server/Migrations/Routines/MoveExtractedFiles.cs')
-rw-r--r--Jellyfin.Server/Migrations/Routines/MoveExtractedFiles.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/Jellyfin.Server/Migrations/Routines/MoveExtractedFiles.cs b/Jellyfin.Server/Migrations/Routines/MoveExtractedFiles.cs
index 38952eec9..6f650f731 100644
--- a/Jellyfin.Server/Migrations/Routines/MoveExtractedFiles.cs
+++ b/Jellyfin.Server/Migrations/Routines/MoveExtractedFiles.cs
@@ -13,6 +13,7 @@ using System.Threading.Tasks;
using Jellyfin.Data.Enums;
using Jellyfin.Database.Implementations;
using Jellyfin.Database.Implementations.Entities;
+using Jellyfin.Server.ServerSetupApp;
using MediaBrowser.Common.Configuration;
using MediaBrowser.Common.Extensions;
using MediaBrowser.Controller.IO;
@@ -29,7 +30,7 @@ namespace Jellyfin.Server.Migrations.Routines;
public class MoveExtractedFiles : IAsyncMigrationRoutine
{
private readonly IApplicationPaths _appPaths;
- private readonly ILogger<MoveExtractedFiles> _logger;
+ private readonly ILogger _logger;
private readonly IDbContextFactory<JellyfinDbContext> _dbProvider;
private readonly IPathManager _pathManager;
private readonly IFileSystem _fileSystem;
@@ -39,18 +40,20 @@ public class MoveExtractedFiles : IAsyncMigrationRoutine
/// </summary>
/// <param name="appPaths">Instance of the <see cref="IApplicationPaths"/> interface.</param>
/// <param name="logger">The logger.</param>
+ /// <param name="startupLogger">The startup logger for Startup UI intigration.</param>
/// <param name="fileSystem">Instance of the <see cref="IFileSystem"/> interface.</param>
/// <param name="pathManager">Instance of the <see cref="IPathManager"/> interface.</param>
/// <param name="dbProvider">Instance of the <see cref="IDbContextFactory{JellyfinDbContext}"/> interface.</param>
public MoveExtractedFiles(
IApplicationPaths appPaths,
ILogger<MoveExtractedFiles> logger,
+ IStartupLogger startupLogger,
IPathManager pathManager,
IFileSystem fileSystem,
IDbContextFactory<JellyfinDbContext> dbProvider)
{
_appPaths = appPaths;
- _logger = logger;
+ _logger = startupLogger.With(logger);
_pathManager = pathManager;
_fileSystem = fileSystem;
_dbProvider = dbProvider;