mirror of
https://github.com/jellyfin/jellyfin-plugin-anisearch.git
synced 2024-11-26 23:50:40 +00:00
add thumb
This commit is contained in:
parent
c42d240700
commit
918f503040
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
Loading…
Reference in New Issue
Block a user