diff --git a/IntroSkipper/Plugin.cs b/IntroSkipper/Plugin.cs index 61b3981..7711b58 100644 --- a/IntroSkipper/Plugin.cs +++ b/IntroSkipper/Plugin.cs @@ -77,15 +77,6 @@ public class Plugin : BasePlugin, IHasWebPages Directory.CreateDirectory(FingerprintCachePath); } - try - { - LegacyMigrations.MigrateAll(this, serverConfiguration, logger, applicationPaths); - } - catch (Exception ex) - { - logger.LogError("Failed to perform migrations. Error: {Error}", ex); - } - // Initialize database, restore timestamps if available. try { @@ -97,6 +88,15 @@ public class Plugin : BasePlugin, IHasWebPages logger.LogWarning("Error initializing database: {Exception}", ex); } + try + { + LegacyMigrations.MigrateAll(this, serverConfiguration, logger, applicationPaths); + } + catch (Exception ex) + { + logger.LogError("Failed to perform migrations. Error: {Error}", ex); + } + FFmpegWrapper.CheckFFmpegVersion(); }