-
Notifications
You must be signed in to change notification settings - Fork 66
/
Plugin.cs
41 lines (38 loc) · 1.43 KB
/
Plugin.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Collections.Generic;
using MediaBrowser.Common.Plugins;
using Emby.Plugins.Douban.Configuration;
using MediaBrowser.Common.Configuration;
using MediaBrowser.Model.Plugins;
using MediaBrowser.Model.Serialization;
namespace Emby.Plugins.Douban
{
public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
{
public const string PluginName = "Emby 飪國祅團";
public override Guid Id => new Guid("ce69a5ea-14b6-44a3-b75a-9d21dd32a7cf");
public override string Name => PluginName;
public override string Description => "Improved Metadata Provider, specifically designed for Douban.";
public static Plugin Instance { get; private set; }
public Plugin(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer) : base(applicationPaths, xmlSerializer)
{
Instance = this;
}
public IEnumerable<PluginPageInfo> GetPages()
{
var type = GetType();
return new[]
{
new PluginPageInfo
{
Name = "douban_account_setting",
EmbeddedResourcePath = GetType().Namespace + ".Configuration.configPage.html",
EnableInMainMenu = true,
MenuSection = "server",
MenuIcon = "theaters",
DisplayName = "飪國梖瘍扢离"
}
};
}
}
}