Jump to content

Building my own server plugin


Recommended Posts

the-dumb1
Posted

Hi,

 

I found on Emby's github a pretty useful guide to creating my own server plugin.

 

I attempted to walk through the guide, stumbled along even using Roku bif plugin as the example.  While I could get what I was writing successfully compiled and copied into the Emby plugins directory, I could not get it to appear in my dashboard's plugins menu even after restarting my server.

 

So I started from scratch, just taking the Roku Bif plugin solution, compiling it, and copying the DLL to the plugins directory.  I still could not see the Roku Bif plugin in my dashboard's plugins menu--even after restarting my server.

 

What am I missing?

 

 

the-dumb1
Posted

Thanks for the quick response, Luke.

 

I see where you're going.  I don't see anything that leads me to believe that the plugin is even being loaded.  Either the one I created or the roku bif plugin.

 

I'm pretty sure I followed the guide to a tee but it is possible I've missed something.

Log

Posted

sounds like you didn't put the dll file in the right place.

the-dumb1
Posted

sounds like you didn't put the dll file in the right place.

 

The problem must be me.  My installation of Emby is fresh and is the default (no changes).  I've followed your guide INCLUDING the post-build action of moving the DLL to the Emby-Server plugin directory. No changes.

 

Where is the "right place" for the DLL?

the-dumb1
Posted

So here's a quote from the guide (https://github.com/MediaBrowser/Emby/wiki/How-to-build-a-Server-Plugin#create-a-post-build-event)

 

 

Right click the project -> Properties. Create a post-build event that will copy the assembly to the server's plugins directory. For example:

xcopy "$(TargetPath)" "%AppData%\Emby-Server\Plugins\" /y

 

Again, if that isn't the right location ... then where is the right location?

 

Just following the guide as closely as I can so that I can understand how to do what I want to do with Emby.

Happy2Play
Posted

If you did a NEW installation it would be "%AppData%\Emby-Server\programdata\Plugins\", if a older installation the other path would be correct.

  • Like 1
the-dumb1
Posted

Thanks. Plugin now works. Why would it be different for a new versus old install? Should the guide be updated to reflect this or am I just that much if a newbie?

Happy2Play
Posted (edited)

Thanks. Plugin now works. Why would it be different for a new versus old install? Should the guide be updated to reflect this or am I just that much if a newbie?

 

This was a update when Emby changed to .net core for new installs but stayed compatible for previous installs.

Edited by Happy2Play

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...