36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
using System;
|
|
using System.IO;
|
|
using Emby.Security;
|
|
using MediaBrowser.Common.Plugins;
|
|
using MediaBrowser.Model.Drawing;
|
|
|
|
namespace MediaBrowser.Plugins.TimeLordMovies;
|
|
|
|
public class Plugin : BasePlugin, IHasThumbImage
|
|
{
|
|
private Guid _id = new Guid("71a3ff1b-c589-4a39-b948-12f08b7715ee");
|
|
|
|
public RegRecord Registration;
|
|
|
|
public override string Name => "TimeLordMovies";
|
|
|
|
public override string Description => "TimeLord Movies allows you to set the date added for Movies to the original Theatrical release date set in the metadata for items in your collection. This is usefull when adding old Movies to your collection, as it prevents theses 'New' Movies from dominating your recently added list. Take control of time with TimeLord Movies.";
|
|
|
|
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;
|
|
}
|
|
}
|