mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-30 07:33:25 +00:00
sync updates
This commit is contained in:
parent
5c84cadb5e
commit
0e02e0559d
33 changed files with 437 additions and 116 deletions
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue