- Change branding from Vu+ to Enigma2 - Fix wrong default hostname - Add new options UseLoginForStreams, UseHTTPSForStreams - Use new GUID to avoid clashing with the older version of plugin
58 lines
1.6 KiB
C#
58 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using MediaBrowser.Common.Configuration;
|
|
using MediaBrowser.Common.Plugins;
|
|
using MediaBrowser.Model.Plugins;
|
|
using MediaBrowser.Model.Serialization;
|
|
using Jellyfin.Plugin.Enigma2.Configuration;
|
|
|
|
namespace Jellyfin.Plugin.Enigma2
|
|
{
|
|
/// <summary>
|
|
/// Class Plugin
|
|
/// </summary>
|
|
public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
|
|
{
|
|
public Plugin(
|
|
IApplicationPaths applicationPaths,
|
|
IXmlSerializer xmlSerializer
|
|
) : base(applicationPaths, xmlSerializer)
|
|
{
|
|
Instance = this;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the name of the plugin
|
|
/// </summary>
|
|
/// <value>The name.</value>
|
|
public override string Name => "Enigma2";
|
|
|
|
/// <summary>
|
|
/// Gets the description.
|
|
/// </summary>
|
|
/// <value>The description.</value>
|
|
public override string Description => "Provides live TV using Enigma2 PVR as a back-end.";
|
|
|
|
private Guid _id = new Guid("193f29f9-ea6c-4595-a6f6-55e79d7c590a");
|
|
public override Guid Id => _id;
|
|
|
|
/// <summary>
|
|
/// Gets the instance.
|
|
/// </summary>
|
|
/// <value>The instance.</value>
|
|
public static Plugin Instance { get; private set; }
|
|
|
|
public IEnumerable<PluginPageInfo> GetPages()
|
|
{
|
|
return new[]
|
|
{
|
|
new PluginPageInfo
|
|
{
|
|
Name = "enigma2",
|
|
EmbeddedResourcePath = "Jellyfin.Plugin.Enigma2.Configuration.configPage.html"
|
|
}
|
|
};
|
|
}
|
|
}
|
|
}
|