30 lines
1.1 KiB
C#
30 lines
1.1 KiB
C#
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Globalization;
|
||
|
using MediaBrowser.Common.Configuration;
|
||
|
using MediaBrowser.Common.Plugins;
|
||
|
using MediaBrowser.Model.Plugins;
|
||
|
using MediaBrowser.Model.Serialization;
|
||
|
|
||
|
namespace Jellyfin.Plugin.SmartPlaylist {
|
||
|
public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages {
|
||
|
public Plugin(
|
||
|
IApplicationPaths applicationPaths,
|
||
|
IXmlSerializer xmlSerializer
|
||
|
) : base (applicationPaths, xmlSerializer) {
|
||
|
Instance = this;
|
||
|
}
|
||
|
public static Plugin? Instance {get; private set; }
|
||
|
public override string Name => "Smart Playlist";
|
||
|
public override Guid Id => Guid.Parse("dd2326e3-4d3e-4bfc-80e6-28502c1131df");
|
||
|
public IEnumerable<PluginPageInfo> GetPages() {
|
||
|
return new[] {
|
||
|
new PluginPageInfo {
|
||
|
Name = this.Name,
|
||
|
EmbeddedResourcePath = string.Format(CultureInfo.InvariantCulture, "{0}.configPage.html", GetType().Namespace)
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
}
|