36 lines
821 B
C#
36 lines
821 B
C#
using System;
|
|
using System.IO;
|
|
using Emby.Security;
|
|
using MediaBrowser.Common.Plugins;
|
|
using MediaBrowser.Model.Drawing;
|
|
|
|
namespace MediaBrowser.Plugins.TimeLord;
|
|
|
|
public class Plugin : BasePlugin, IHasThumbImage
|
|
{
|
|
private Guid _id = new Guid("3A7EF733-F70B-4947-9E03-2813B5A423E3");
|
|
|
|
public RegRecord Registration;
|
|
|
|
public override string Name => "TimeLordTV";
|
|
|
|
public override string Description => "Set Episode Added date to the original airdate for the Epsiode.";
|
|
|
|
public override Guid Id => _id;
|
|
|
|
public ImageFormat ThumbImageFormat => (ImageFormat)3;
|
|
|
|
public static Plugin Instance { get; private set; }
|
|
|
|
public Stream GetThumbImage()
|
|
{
|
|
Type type = ((object)this).GetType();
|
|
return type.Assembly.GetManifestResourceStream(type.Namespace + ".thumb.png");
|
|
}
|
|
|
|
public Plugin()
|
|
{
|
|
Instance = this;
|
|
}
|
|
}
|