Jump to content
Luke

ANSWERED Plugin image change

Recommended Posts

Luke

Going forward with Emby Server 3.6. plugins will be responsible for embedding their own thumbnail image to be used in the installed plugins list, "My Plugins".

 

Previously we were using the plugin catalog to figure out the image, however this has two problems:

  • If you're not listing the plugin in the catalog, there was no way to have a thumbnail
  • In the event of an outage of our admin server, this would cause the "My plugins" list to be very slow

Embedding is simple with these three steps:

  • Add a thumb image to your project as an embedded resource
  • Have your plugin implement IHasThumbImage
  • Implement these two methods:

https://github.com/MediaBrowser/NextPVR/blob/master/MediaBrowser.Plugins.NextPvr/Plugin.cs#L63-L75

 

@@Sven

@@mutu310

@@chef

@@radeon

@@Inrego

@@softworkz

@@reggi

@@krustyreturns 

@@Frank Drebin

@@snazy2000

@@hamstercat

@@Aphid

@@BeppoMonkeyBoy

@@flexage

@@pünktchen 

@

@t.andre

  • Like 1

Share this post


Link to post
Share on other sites
Luke

@@Happy2Play, if you see plugins without images under My Plugins, you can point the developers here. Thanks.

Share this post


Link to post
Share on other sites
mutu310

Two questions.

 

1) What is the recommended size of the thumbnail image?

2) What is the minimum required server version that supports IHasThumbImage?

Share this post


Link to post
Share on other sites
Luke

3.6.0.38

 

No specific size but 16x9 aspect.

 

I'd probably suggest 640 width.

  • Like 1

Share this post


Link to post
Share on other sites
Happy2Play

@@Luke  Last.fm

 

@ Playback Reporting

 

@@BeppoMonkeyBoy TimeLordMovies/TV

Edited by Happy2Play

Share this post


Link to post
Share on other sites
Luke

Thanks !

Share this post


Link to post
Share on other sites
Happy2Play

Thanks !

 

I got v1.0.5.0 but image is still not appearing.

Share this post


Link to post
Share on other sites
Happy2Play

Not knowing how far out 3.6 release is but out of all the plugins I have Statistics and TimeLord plugins still need updating.

 

Anyone else seeing plugins that don't have images in 3.6.x.x?

Share this post


Link to post
Share on other sites
Luke

Thanks for the info.

Share this post


Link to post
Share on other sites
Happy2Play

All the plugins I have come across or use have been updated.

 

 

 

Oops the Statistics plugin still need image update.

Edited by Happy2Play

Share this post


Link to post
Share on other sites
Luke

Thanks for the feedback.

Share this post


Link to post
Share on other sites
Poppabear

IHasThumbImage is not resolving for me ? And I get no Thumbnail ...

 

Visual Studio 2019

using System;
using System.Collections.Generic;
using MediaBrowser.Common.Configuration;
using MediaBrowser.Common.Plugins;
using MediaBrowser.Model.Plugins;
using MediaBrowser.Model.Serialization;
using System.IO;
using MediaBrowser.Model.Drawing;

...

public Stream GetThumbImage()
{
   var type = GetType();
   return type.Assembly.GetManifestResourceStream(type.Namespace + ".Images.plugin.png");
}

public ImageFormat ThumbImageFormat => ImageFormat.Png;

 5d83a61085f94_devenv_5GdmXFBs6h.png

 

5d83a65f9070f_devenv_AgcrVE5AP9.png

 

Any Help ?

 

Thanks in advance

Share this post


Link to post
Share on other sites
Luke

I would compare your using statements to the example in the first post. Thanks.

Share this post


Link to post
Share on other sites
Poppabear

I would compare your using statements to the example in the first post. Thanks.

 

I have done this without any luck ... any other suggestions ??

Share this post


Link to post
Share on other sites
Luke

Other than making sure you're running the latest nuget package, sorry, no ideas. There's an example right in the first post that all of the other plugins have followed.

Share this post


Link to post
Share on other sites
BillOatman

@Poppabear   This is what I am using, hope it helps.  Also using VS2019.

 

5d83c71612dc1_Clipboard.jpg

 

5d83c7fe16de6_Clipboard.jpg

 

 

5d83c66566e68_Clipboard.jpg

Edited by BillOatman

Share this post


Link to post
Share on other sites
Poppabear

@@BillOatman Thanks,

 

I have the same exact things going on.

 

I was able to fix the "Resolving issue" so now VS2019 is resolving the interface, However i still am not getting my image on the Emby server dashboard.

Share this post


Link to post
Share on other sites
Poppabear

I was able to fix it, My Post Build Event was wrong

 

Had: xcopy "$(TargetPath)" "%AppData%\Roaming\Emby-Server\system\plugins" /y

 

Changed it to: xcopy "$(TargetPath)" "%AppData%\Emby-Server\system\plugins" /y

 

Had to remove the Roaming directory from that path

 

Thanks guys

  • Like 1

Share this post


Link to post
Share on other sites
hackthis02

Little late to the party but Statistics is now compliant. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...