skin.arctic.horizon icon indicating copy to clipboard operation
skin.arctic.horizon copied to clipboard

My Addon doesnt show up at all in this skin

Open mrXoo opened this issue 3 years ago • 6 comments

Hi there,

When I click my addon to open it I get a blank screen with the title in the top left.

Works in Estuary

How can I fix that?

mrXoo avatar Dec 09 '21 06:12 mrXoo

Is your add-on setting the content type (https://romanvm.github.io/Kodistubs/_autosummary/xbmcplugin.html#xbmcplugin.setContent)? If not, then the skin can't figure out which view to use, because it doesn't know what type of content your add-on has.

drinfernoo avatar Dec 09 '21 12:12 drinfernoo

No it does not. Where would that setting go? In the default.py after the adddir or in the settings.xml

kodilogs avatar Dec 09 '21 14:12 kodilogs

It goes in Python, basically at any point in your plugin's execution before you call https://romanvm.github.io/Kodistubs/_autosummary/xbmcplugin.html#xbmcplugin.endOfDirectory.

In general, Python methods go in Python files, not in the XML 😉

drinfernoo avatar Dec 09 '21 15:12 drinfernoo

can you give me an example of where in an addon and the code would be so I can see where it goes and what to put?

something like this?

xbmcplugin.setContent(int(sys.argv[1]), 'tvshows')

Thanks Ive got it

mrXoo avatar Dec 09 '21 19:12 mrXoo

@mrXoo The documentation I linked above includes a list of the valid content types, and an example of how to use it 👌

drinfernoo avatar Dec 09 '21 20:12 drinfernoo

It should still show up if the content type is none.

Make sure that you're using latest version of script.skinvariables (v0.2.6) and then go to Skin Settings > Items and Views > Customise Viewtypes and scroll down the bottom and click Reset all plugin views...

I identified an issue about a month ago where it was possible to end up in scenario where the views for plugins wouldn't reset properly and you'd end up with no views assigned in some plugins and no way to reset them. It was fixed in v0.2.6, so if you're only using v0.2.5 from the official repo then you might've stumbled across the same issue

Relevant commit in skinvariables: https://github.com/jurialmunkey/script.skinvariables/commit/24c352e367835c978dd19ea34f377846b3885ac3

jurialmunkey avatar Dec 10 '21 07:12 jurialmunkey