You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jellyfin/MediaBrowser.HtmlBrowser/Plugin.cs

35 lines
1.0 KiB

using System.ComponentModel.Composition;
using MediaBrowser.Common.Plugins;
13 years ago
using MediaBrowser.Controller;
using MediaBrowser.Model.Plugins;
13 years ago
namespace MediaBrowser.HtmlBrowser
{
[Export(typeof(BasePlugin))]
public class Plugin : BaseGenericPlugin<BasePluginConfiguration>
13 years ago
{
public override string Name
{
get { return "Html Library Browser"; }
}
public override void Init()
13 years ago
{
var httpServer = Kernel.Instance.HttpServer;
/*httpServer.Where(ctx => ctx.LocalPath.IndexOf("/browser/", StringComparison.OrdinalIgnoreCase) != -1).Subscribe(ctx =>
{
string localPath = ctx.LocalPath;
string srch = "/browser/";
int index = localPath.IndexOf(srch, StringComparison.OrdinalIgnoreCase);
string resource = localPath.Substring(index + srch.Length);
ctx.Respond(new EmbeddedResourceHandler(ctx, resource));
});*/
13 years ago
}
}
}