mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 17:44:43 +01:00
fixes #795 - Support reading Xbmc nfo's
This commit is contained in:
29
MediaBrowser.XbmcMetadata/Configuration/NfoOptions.cs
Normal file
29
MediaBrowser.XbmcMetadata/Configuration/NfoOptions.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using MediaBrowser.Common.Configuration;
|
||||
using MediaBrowser.Model.Configuration;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MediaBrowser.XbmcMetadata.Configuration
|
||||
{
|
||||
public class ConfigurationFactory : IConfigurationFactory
|
||||
{
|
||||
public IEnumerable<ConfigurationStore> GetConfigurations()
|
||||
{
|
||||
return new[]
|
||||
{
|
||||
new ConfigurationStore
|
||||
{
|
||||
ConfigurationType = typeof(XbmcMetadataOptions),
|
||||
Key = "xbmcmetadata"
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
public static class ConfigurationExtension
|
||||
{
|
||||
public static XbmcMetadataOptions GetNfoConfiguration(this IConfigurationManager manager)
|
||||
{
|
||||
return manager.GetConfiguration<XbmcMetadataOptions>("xbmcmetadata");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user