Jump to content

Plugin image change


Luke
Go to solution Solved by Poppabear,

Recommended Posts

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
Link to comment
Share on other sites

Two questions.

 

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

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

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 months later...
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?

Link to comment
Share on other sites

  • 1 month later...
Happy2Play

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

 

 

 

Oops the Statistics plugin still need image update.

Edited by Happy2Play
Link to comment
Share on other sites

  • 8 months later...
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

Link to comment
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 ??

Link to comment
Share on other sites

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.

Link to comment
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
Link to comment
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.

Link to comment
Share on other sites

  • Solution
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
Link to comment
Share on other sites

  • 10 months later...
  • 2 years later...
Happy2Play

@t.andreShould this be updated or removed from catalog?

image.png.62d1d001e6839c21d9f50c577a56e315.png

Notice from plugin image url.

Spoiler

SORRY, WE ARE CLOSED

After many years spent on the development of the DVBLink and TVMosaic software we sadly announce that it has come to an end today.
The decline in the global linear TV usage has set the downward business tendency and coronavirus pandemic was the final straw.

The company closure means the following (effective today):

All DVBLogic business activities are completely stopped

TVMosaic and DVBLink products and their upgrades are not available for sale anymore

Forums, wiki, dvblogic web page, mailing lists and social pages cease to exist

All previously available support e-mails (info@dvblogic.com and tvmosaic@dvblogic.com) cease to exist

There is a special e-mail created to address the licensing issues and any other post-mortem requests: afterlife@dvblogic.com. Please, note that no technical support will be provided at this e-mail address. It can take several days before the e-mails are answered (if at all, depending on the nature of the request)

TV guide data for TV Adviser products will be delivered until 30 August 2020

All existing TVMosaic and DVBLink users may continue using their products without any restrictions. The re-licensing issues can be addressed via the self-service license portal (a number of self re-activations has been increased to 5 in any 6 months window) or, if i does not work, by writing to our e-mail address, mentioned above. The support in licensing issues will be provided at least until 31 December 2020.


We would like to thank all our users who have been with us all these years.

DVBLogic team

 

Link to comment
Share on other sites

8 minutes ago, Happy2Play said:

@t.andreShould this be updated or removed from catalog?

image.png.62d1d001e6839c21d9f50c577a56e315.png

Notice from plugin image url.

  Reveal hidden contents

 

The software still works so it's just the image url that needs updating.

Link to comment
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...