mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-20 07:45:26 +03:00
sync updates
This commit is contained in:
29
MediaBrowser.Server.Implementations/Sync/SyncConfig.cs
Normal file
29
MediaBrowser.Server.Implementations/Sync/SyncConfig.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using MediaBrowser.Common.Configuration;
|
||||
using MediaBrowser.Model.Sync;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MediaBrowser.Server.Implementations.Sync
|
||||
{
|
||||
public class SyncConfigurationFactory : IConfigurationFactory
|
||||
{
|
||||
public IEnumerable<ConfigurationStore> GetConfigurations()
|
||||
{
|
||||
return new List<ConfigurationStore>
|
||||
{
|
||||
new ConfigurationStore
|
||||
{
|
||||
ConfigurationType = typeof(SyncOptions),
|
||||
Key = "sync"
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
public static class SyncExtensions
|
||||
{
|
||||
public static SyncOptions GetSyncOptions(this IConfigurationManager config)
|
||||
{
|
||||
return config.GetConfiguration<SyncOptions>("sync");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user