chef 3749 Posted April 3, 2017 Share Posted April 3, 2017 (edited) I am pretty sure the problem lies in the plugin class. You want to change the "Name" property of the "PluginPageInfo" from "LazyMan" to "configPage". If that doesn't work, I just am about to check over your HTML to make sure it will load. The question I have is. Does the config page try to load, but is blank? Or when you try to open the plugin... Nothing happens? Looking at you HTML, I think that the main div which has the class "page type-interior" should have the change "LazymanConfigurationPage" to "configPage". That might not matter though... not 100% sure yet. Edited April 3, 2017 by chef Link to comment Share on other sites More sharing options...
thejacer87 9 Posted April 4, 2017 Author Share Posted April 4, 2017 The question I have is. Does the config page try to load, but is blank? Or when you try to open the plugin... Nothing happens? it does nothing, except change the url to `/web/configurationpage?name=lazyman` or name=configPage depending if I applied the changes you suggested. either way i changed the name property and didn't work. and changed the class still nothing. and like i said... i've literally just copied the iptv html and swapped IPTV with LazyMan Link to comment Share on other sites More sharing options...
chef 3749 Posted April 4, 2017 Share Posted April 4, 2017 (edited) it does nothing, except change the url to `/web/configurationpage?name=lazyman` or name=configPage depending if I applied the changes you suggested. either way i changed the name property and didn't work. and changed the class still nothing. and like i said... i've literally just copied the iptv html and swapped IPTV with LazyMan @@thejacer87Right! I know the problem!!! You gotta have the HTML document set as an "Embedded Resource" I don't know what that means for Linux IDE you are using, but in Visual Studio that is what you have to do! Edited April 4, 2017 by chef Link to comment Share on other sites More sharing options...
thejacer87 9 Posted April 4, 2017 Author Share Posted April 4, 2017 (edited) You gotta have the HTML document set as an "Embedded Resource" looks like it's just a right click > build action > embedded resource though i still get nothing also not sure i understand why one would need to change the file build action like that? like what does that even mean?!?!? Edited April 4, 2017 by thejacer87 Link to comment Share on other sites More sharing options...
chef 3749 Posted April 4, 2017 Share Posted April 4, 2017 looks like it's just a right click > build action > embedded resource though i still get nothing also not sure i understand why one would need to change the file build action like that? like what does that even mean?!?!? The HTML JavaScript is talking to the C# backend through XML. That is why the configuration file is so important. The plugin code gets updated through the XML and vice versa. It is actually kind of cool. The server is hosting the HTML file as one of its webpages, so I order to add it to the servers binaries it has to be embedded. Strange that it isn't working though. I'm sure that is the problem. Did you update the version number when the new release was built (have added the HTML doc as an embedded resource)? Link to comment Share on other sites More sharing options...
thejacer87 9 Posted April 4, 2017 Author Share Posted April 4, 2017 (edited) Did you update the version number when the new release was built (have added the HTML doc as an embedded resource)? can't i just leave it at 1.0.* ?? [assembly: AssemblyVersion("1.0.*")] or do i have to change it everytime i rebuild...? seems annoying Edited April 4, 2017 by thejacer87 Link to comment Share on other sites More sharing options...
chef 3749 Posted April 4, 2017 Share Posted April 4, 2017 No just leave it. It is updating. I'm going to pull the version of your plugin from git and test it again. Sorry got caught up with the kids. I'll test it out shortly Link to comment Share on other sites More sharing options...
thejacer87 9 Posted April 5, 2017 Author Share Posted April 5, 2017 i can confirm that, at least it seems to me, that the html is indeed embedded in the dll. if i look at the dll i can see the html in there Link to comment Share on other sites More sharing options...
Luke 37156 Posted April 5, 2017 Share Posted April 5, 2017 Yes that is correct. Link to comment Share on other sites More sharing options...
thejacer87 9 Posted April 5, 2017 Author Share Posted April 5, 2017 Yes that is correct. what's correct? did you look at the plugin too? did the config page show up for you? Link to comment Share on other sites More sharing options...
Luke 37156 Posted April 5, 2017 Share Posted April 5, 2017 Correct that html is embedded. Link to comment Share on other sites More sharing options...
thejacer87 9 Posted April 5, 2017 Author Share Posted April 5, 2017 ya k, i was just confirming that it was in there so @@chef didn't have to check. I still have no idea why the config page won't load up since I'm copying the iptv plugin Link to comment Share on other sites More sharing options...
ebr 14947 Posted April 5, 2017 Share Posted April 5, 2017 Try specifying the full resource path here (MediaBrowser.Channels.Lazyman...). Then also be sure the name you defined there matches the name defined in the page (and I'd use a more unique/complicated one). Link to comment Share on other sites More sharing options...
thejacer87 9 Posted April 6, 2017 Author Share Posted April 6, 2017 Try specifying the full resource path here (MediaBrowser.Channels.Lazyman...). Then also be sure the name you defined there matches the name defined in the page (and I'd use a more unique/complicated one). when you say "the name defined in the page", what are you talking about? an id or class in the html? Link to comment Share on other sites More sharing options...
dosullivan84 1 Posted April 19, 2017 Share Posted April 19, 2017 Link to comment Share on other sites More sharing options...
Luke 37156 Posted April 19, 2017 Share Posted April 19, 2017 Nice work so far buddy is it like ridiculously hard to create plugins for Emby? As theres not a lot of them and not that much on going discussions about them either There's a good number of them in the catalog. The primary challenge is the need to support users, answer questions, etc. Not everyone wants to commit to that. Link to comment Share on other sites More sharing options...
thejacer87 9 Posted April 28, 2017 Author Share Posted April 28, 2017 Nice work so far buddy is it like ridiculously hard to create plugins for Emby? As theres not a lot of them and not that much on going discussions about them either not really much work so far lol. i can't even get a settings page to load properly. im definitely having issues building this plugin, and there is a serious lack of documentation... like 0. I'm trying to copy other plugins to no avail Link to comment Share on other sites More sharing options...
Luke 37156 Posted April 28, 2017 Share Posted April 28, 2017 This is not 0: https://github.com/MediaBrowser/Emby/wiki/How-to-build-a-Server-Plugin Link to comment Share on other sites More sharing options...
thejacer87 9 Posted April 29, 2017 Author Share Posted April 29, 2017 OMFG, im an idiot lmfao. I somehow didn't see menu on the side. The pages section was always expanded, and it didn't seem to have want i needed lol. i just blocked it out in my mind. Carry on, nothing to see here. I'm going to start working on this again now that i have some docs lmao Link to comment Share on other sites More sharing options...
squirrellydw 9 Posted September 30, 2017 Share Posted September 30, 2017 any update on this? Link to comment Share on other sites More sharing options...
Luke 37156 Posted September 30, 2017 Share Posted September 30, 2017 @@squirrellydw what exactly are you looking for an update on? Link to comment Share on other sites More sharing options...
squirrellydw 9 Posted October 1, 2017 Share Posted October 1, 2017 I was wondering if the Plugin was ever finished Link to comment Share on other sites More sharing options...
thejacer87 9 Posted October 2, 2017 Author Share Posted October 2, 2017 I was wondering if the Plugin was ever finished nope, i'm having too many issues with my setup. so im putting a pause on it Link to comment Share on other sites More sharing options...
jimmolinaro 0 Posted December 23, 2018 Share Posted December 23, 2018 I'm another Plex convert to emby and miss my Plex plugins. So I thought I'd drop by to see if it was possible to create my own emby plugins. well I see it is, but I also see it is quite challenging and it sounds like I might need some college courses to complete it! Thanks for the insight but I think I'll look for other alternatives. Link to comment Share on other sites More sharing options...
chef 3749 Posted December 23, 2018 Share Posted December 23, 2018 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now