diff options
| author | Nyanmisaka <nst799610810@gmail.com> | 2024-07-23 15:37:33 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-23 15:37:33 +0800 |
| commit | 00088c295445fe2710cae468e1b09f98a32e40a5 (patch) | |
| tree | 77614fb434409bc2ddf3d7d0b5830339a6374bfb /Jellyfin.Server/Migrations/Routines/AddDefaultCastReceivers.cs | |
| parent | deb36eeedaba2f1421b92d290d85d45bfe48d1f5 (diff) | |
| parent | 19dca018b2604ff8666cabaf9d0f9c8974572756 (diff) | |
Merge branch 'master' into fix-hwa-video-rotation
Diffstat (limited to 'Jellyfin.Server/Migrations/Routines/AddDefaultCastReceivers.cs')
| -rw-r--r-- | Jellyfin.Server/Migrations/Routines/AddDefaultCastReceivers.cs | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/Jellyfin.Server/Migrations/Routines/AddDefaultCastReceivers.cs b/Jellyfin.Server/Migrations/Routines/AddDefaultCastReceivers.cs index 75a6a6176..57a5c8a62 100644 --- a/Jellyfin.Server/Migrations/Routines/AddDefaultCastReceivers.cs +++ b/Jellyfin.Server/Migrations/Routines/AddDefaultCastReceivers.cs @@ -32,24 +32,20 @@ public class AddDefaultCastReceivers : IMigrationRoutine /// <inheritdoc /> public void Perform() { - // Only add if receiver list is empty. - if (_serverConfigurationManager.Configuration.CastReceiverApplications.Length == 0) - { - _serverConfigurationManager.Configuration.CastReceiverApplications = new CastReceiverApplication[] + _serverConfigurationManager.Configuration.CastReceiverApplications = + [ + new() { - new() - { - Id = "F007D354", - Name = "Stable" - }, - new() - { - Id = "6F511C87", - Name = "Unstable" - } - }; - - _serverConfigurationManager.SaveConfiguration(); - } + Id = "F007D354", + Name = "Stable" + }, + new() + { + Id = "6F511C87", + Name = "Unstable" + } + ]; + + _serverConfigurationManager.SaveConfiguration(); } } |
