The Free Software Media System - Server Backend & API
Backport pull request #16540 from jellyfin/release-10.11.z
Shadowghostc008f28d3126
diff --git a/Jellyfin.Server/Migrations/Routines/FixLibrarySubtitleDownloadLanguages.cs b/Jellyfin.Server/Migrations/Routines/FixLibrarySubtitleDownloadLanguages.csindex e82123e5ac..2b1f549940 100644--- a/Jellyfin.Server/Migrations/Routines/FixLibrarySubtitleDownloadLanguages.cs+++ b/Jellyfin.Server/Migrations/Routines/FixLibrarySubtitleDownloadLanguages.cs@@ -7,7 +7,6 @@ using Jellyfin.Server.ServerSetupApp;using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Library;using MediaBrowser.Model.Globalization;-using Microsoft.EntityFrameworkCore;using Microsoft.Extensions.Logging;namespace Jellyfin.Server.Migrations.Routines;@@ -50,7 +49,7 @@ internal class FixLibrarySubtitleDownloadLanguages : IAsyncMigrationRoutineforeach (var virtualFolder in virtualFolders){var options = virtualFolder.LibraryOptions;- if (options.SubtitleDownloadLanguages is null || options.SubtitleDownloadLanguages.Length == 0)+ if (options?.SubtitleDownloadLanguages is null || options.SubtitleDownloadLanguages.Length == 0){continue;}