aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server
diff options
context:
space:
mode:
Diffstat (limited to 'Jellyfin.Server')
-rw-r--r--Jellyfin.Server/Migrations/MigrationOptions.cs2
-rw-r--r--Jellyfin.Server/Migrations/MigrationRunner.cs7
-rw-r--r--Jellyfin.Server/Migrations/MigrationsFactory.cs2
-rw-r--r--Jellyfin.Server/Migrations/Routines/DisableTranscodingThrottling.cs4
4 files changed, 8 insertions, 7 deletions
diff --git a/Jellyfin.Server/Migrations/MigrationOptions.cs b/Jellyfin.Server/Migrations/MigrationOptions.cs
index b96288cc1b..6b7831158f 100644
--- a/Jellyfin.Server/Migrations/MigrationOptions.cs
+++ b/Jellyfin.Server/Migrations/MigrationOptions.cs
@@ -15,7 +15,7 @@ namespace Jellyfin.Server.Migrations
#pragma warning disable CA1819 // Properties should not return arrays
/// <summary>
- /// Gets or sets he list of applied migration routine names.
+ /// Gets or sets the list of applied migration routine names.
/// </summary>
public string[] Applied { get; set; }
#pragma warning restore CA1819 // Properties should not return arrays
diff --git a/Jellyfin.Server/Migrations/MigrationRunner.cs b/Jellyfin.Server/Migrations/MigrationRunner.cs
index 8e786f34ea..8bc29d8ac8 100644
--- a/Jellyfin.Server/Migrations/MigrationRunner.cs
+++ b/Jellyfin.Server/Migrations/MigrationRunner.cs
@@ -6,7 +6,7 @@ using Microsoft.Extensions.Logging;
namespace Jellyfin.Server.Migrations
{
/// <summary>
- /// The class that knows how migrate between different Jellyfin versions.
+ /// The class that knows which migrations to apply and how to apply them.
/// </summary>
public sealed class MigrationRunner
{
@@ -29,7 +29,7 @@ namespace Jellyfin.Server.Migrations
var logger = loggerFactory.CreateLogger<MigrationRunner>();
var migrationOptions = ((IConfigurationManager)host.ServerConfigurationManager).GetConfiguration<MigrationOptions>(MigrationsListStore.StoreKey);
- if (!host.ServerConfigurationManager.Configuration.IsStartupWizardCompleted)
+ if (!host.ServerConfigurationManager.Configuration.IsStartupWizardCompleted && migrationOptions.Applied.Length == 0)
{
// If startup wizard is not finished, this is a fresh install.
// Don't run any migrations, just mark all of them as applied.
@@ -51,13 +51,14 @@ namespace Jellyfin.Server.Migrations
}
logger.LogInformation("Applying migration {Name}", migrationRoutine.Name);
+
try
{
migrationRoutine.Perform(host, logger);
}
catch (Exception ex)
{
- logger.LogError(ex, "Cannot apply migration {Name}", migrationRoutine.Name);
+ logger.LogError(ex, "Could not apply migration {Name}", migrationRoutine.Name);
continue;
}
diff --git a/Jellyfin.Server/Migrations/MigrationsFactory.cs b/Jellyfin.Server/Migrations/MigrationsFactory.cs
index ed01dc646a..23c1b1ee6f 100644
--- a/Jellyfin.Server/Migrations/MigrationsFactory.cs
+++ b/Jellyfin.Server/Migrations/MigrationsFactory.cs
@@ -4,7 +4,7 @@ using MediaBrowser.Common.Configuration;
namespace Jellyfin.Server.Migrations
{
/// <summary>
- /// A factory that teachs Jellyfin how to find a peristent file which lists all applied migrations.
+ /// A factory that can find a persistent file of the migration configuration, which lists all applied migrations.
/// </summary>
public class MigrationsFactory : IConfigurationFactory
{
diff --git a/Jellyfin.Server/Migrations/Routines/DisableTranscodingThrottling.cs b/Jellyfin.Server/Migrations/Routines/DisableTranscodingThrottling.cs
index db0bef8851..279e7bbea5 100644
--- a/Jellyfin.Server/Migrations/Routines/DisableTranscodingThrottling.cs
+++ b/Jellyfin.Server/Migrations/Routines/DisableTranscodingThrottling.cs
@@ -8,7 +8,7 @@ using Microsoft.Extensions.Logging;
namespace Jellyfin.Server.Migrations.Routines
{
/// <summary>
- /// Updater that takes care of bringing configuration up to 10.5.0 standards.
+ /// Disable transcode throttling for all installations since it is currently broken for certain video formats.
/// </summary>
internal class DisableTranscodingThrottling : IMigrationRoutine
{
@@ -18,7 +18,7 @@ namespace Jellyfin.Server.Migrations.Routines
/// <inheritdoc/>
public void Perform(CoreAppHost host, ILogger logger)
{
- // Set EnableThrottling to false as it wasn't used before, and in 10.5.0 it may introduce issues
+ // Set EnableThrottling to false since it wasn't used before and may introduce issues
var encoding = ((IConfigurationManager)host.ServerConfigurationManager).GetConfiguration<EncodingOptions>("encoding");
if (encoding.EnableThrottling)
{