add thumb

This commit is contained in:
Luke Pulverenti 2018-09-07 01:03:38 -04:00
parent c42d240700
commit 918f503040
3 changed files with 23 additions and 4 deletions

View File

@ -2,20 +2,23 @@
<PropertyGroup>
<TargetFrameworks>netstandard2.0;</TargetFrameworks>
<AssemblyVersion>1.3.0.0</AssemblyVersion>
<FileVersion>1.3.0.0</FileVersion>
<AssemblyVersion>1.3.1.0</AssemblyVersion>
<FileVersion>1.3.1.0</FileVersion>
</PropertyGroup>
<ItemGroup>
<None Remove="Configuration\configPage.html" />
<None Remove="thumb.png" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Configuration\configPage.html" />
<EmbeddedResource Include="thumb.png" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="mediabrowser.server.core" Version="3.6.0.7-beta" />
<PackageReference Include="mediabrowser.server.core" Version="3.6.0.36-beta" />
<PackageReference Include="System.Memory" Version="4.5.1" />
</ItemGroup>
</Project>

View File

@ -7,11 +7,13 @@ using MediaBrowser.Plugins.Anime.Configuration;
using MediaBrowser.Plugins.Anime.Providers.AniDB.Identity;
using System;
using System.Collections.Generic;
using MediaBrowser.Model.Drawing;
using System.IO;
namespace MediaBrowser.Plugins.Anime
{
public class Plugin
: BasePlugin<PluginConfiguration>, IHasWebPages
: BasePlugin<PluginConfiguration>, IHasWebPages, IHasThumbImage
{
public Plugin(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer, ILogger logger) : base(applicationPaths, xmlSerializer)
{
@ -45,5 +47,19 @@ namespace MediaBrowser.Plugins.Anime
{
get { return _id; }
}
public Stream GetThumbImage()
{
var type = GetType();
return type.Assembly.GetManifestResourceStream(type.Namespace + ".thumb.png");
}
public ImageFormat ThumbImageFormat
{
get
{
return ImageFormat.Png;
}
}
}
}

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB