mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Always set cast receivers during migration (#11516)
This commit is contained in:
parent
44b03a3315
commit
5d2a1da73e
@ -32,24 +32,20 @@ public class AddDefaultCastReceivers : IMigrationRoutine
|
|||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public void Perform()
|
public void Perform()
|
||||||
{
|
{
|
||||||
// Only add if receiver list is empty.
|
_serverConfigurationManager.Configuration.CastReceiverApplications =
|
||||||
if (_serverConfigurationManager.Configuration.CastReceiverApplications.Length == 0)
|
[
|
||||||
{
|
new()
|
||||||
_serverConfigurationManager.Configuration.CastReceiverApplications = new CastReceiverApplication[]
|
|
||||||
{
|
{
|
||||||
new()
|
Id = "F007D354",
|
||||||
{
|
Name = "Stable"
|
||||||
Id = "F007D354",
|
},
|
||||||
Name = "Stable"
|
new()
|
||||||
},
|
{
|
||||||
new()
|
Id = "6F511C87",
|
||||||
{
|
Name = "Unstable"
|
||||||
Id = "6F511C87",
|
}
|
||||||
Name = "Unstable"
|
];
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
_serverConfigurationManager.SaveConfiguration();
|
_serverConfigurationManager.SaveConfiguration();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user