forked from vosmiic/jellyfin-ani-sync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Plugin.cs
38 lines (35 loc) · 1.44 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
#nullable enable
using System;
using System.Collections.Generic;
using System.Globalization;
using jellyfin_ani_sync.Configuration;
using MediaBrowser.Common.Configuration;
using MediaBrowser.Common.Plugins;
using MediaBrowser.Model.Plugins;
using MediaBrowser.Model.Serialization;
namespace jellyfin_ani_sync {
public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages {
public Plugin(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer) : base(applicationPaths, xmlSerializer) {
Instance = this;
}
public override string Name => "Ani-Sync";
public override Guid Id => Guid.Parse("c78f11cf-93e6-4423-8c42-d2c255b70e47");
public override string Description => "Synchronize anime watch status between Jellyfin and anime tracking sites.";
public PluginConfiguration PluginConfiguration => Configuration;
public static Plugin? Instance { get; private set; }
public IEnumerable<PluginPageInfo> GetPages() {
return new[]
{
new PluginPageInfo
{
Name = Name,
EmbeddedResourcePath = $"{GetType().Namespace}.Configuration.ConfigPage.html"
},
new PluginPageInfo {
Name = "ConfigPageJs",
EmbeddedResourcePath = $"{GetType().Namespace}.Configuration.ConfigPageJs.js"
}
};
}
}
}