mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-03 06:18:28 +01:00
separate player selection into it's own script
This commit is contained in:
@@ -43,25 +43,5 @@ namespace MediaBrowser.Providers.Chapters
|
||||
{
|
||||
return _itemRepo.SaveChapters(new Guid(itemId), chapters, cancellationToken);
|
||||
}
|
||||
|
||||
public ChapterOptions GetConfiguration()
|
||||
{
|
||||
return _config.GetConfiguration<ChapterOptions>("chapters");
|
||||
}
|
||||
}
|
||||
|
||||
public class ChapterConfigurationStore : IConfigurationFactory
|
||||
{
|
||||
public IEnumerable<ConfigurationStore> GetConfigurations()
|
||||
{
|
||||
return new List<ConfigurationStore>
|
||||
{
|
||||
new ConfigurationStore
|
||||
{
|
||||
Key = "chapters",
|
||||
ConfigurationType = typeof (ChapterOptions)
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user