mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-28 11:44:48 +03:00
move provider project towards portability
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
using System.Collections.Generic;
|
||||
using MediaBrowser.Common.Configuration;
|
||||
using MediaBrowser.Model.Providers;
|
||||
|
||||
namespace MediaBrowser.MediaEncoding.Subtitles
|
||||
{
|
||||
public static class ConfigurationExtension
|
||||
{
|
||||
public static SubtitleOptions GetSubtitleConfiguration(this IConfigurationManager manager)
|
||||
{
|
||||
return manager.GetConfiguration<SubtitleOptions>("subtitles");
|
||||
}
|
||||
}
|
||||
|
||||
public class SubtitleConfigurationFactory : IConfigurationFactory
|
||||
{
|
||||
public IEnumerable<ConfigurationStore> GetConfigurations()
|
||||
{
|
||||
return new List<ConfigurationStore>
|
||||
{
|
||||
new ConfigurationStore
|
||||
{
|
||||
Key = "subtitles",
|
||||
ConfigurationType = typeof (SubtitleOptions)
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user