mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 09:44:47 +03:00
Re-worked provider id's, api client, moved people to the api item wrapper and added server error handling
This commit is contained in:
parent
d5cf6d59a3
commit
3f1af19ce7
@@ -1,19 +1,17 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using MediaBrowser.Common.Net.Handlers;
|
||||
using MediaBrowser.Controller;
|
||||
|
||||
namespace MediaBrowser.Api.HttpHandlers
|
||||
{
|
||||
public class PluginConfigurationHandler : JsonHandler
|
||||
public class PluginConfigurationHandler : BaseJsonHandler
|
||||
{
|
||||
protected override object ObjectToSerialize
|
||||
protected override object GetObjectToSerialize()
|
||||
{
|
||||
get
|
||||
{
|
||||
string pluginName = QueryString["name"];
|
||||
string pluginName = QueryString["name"];
|
||||
|
||||
return Kernel.Instance.Plugins.First(p => p.Name.Equals(pluginName, StringComparison.OrdinalIgnoreCase)).Configuration;
|
||||
}
|
||||
return Kernel.Instance.Plugins.First(p => p.Name.Equals(pluginName, StringComparison.OrdinalIgnoreCase)).Configuration;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user