jurialmunkey / skin.arctic.horizon

A simple minimal skin for Kodi
Other
174 stars 49 forks source link

My Addon doesnt show up at all in this skin #445

Open mrXoo opened 2 years ago

mrXoo commented 2 years ago

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?

drinfernoo commented 2 years ago

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.

kodilogs commented 2 years ago

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

drinfernoo commented 2 years ago

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 😉

mrXoo commented 2 years ago

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

drinfernoo commented 2 years ago

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

jurialmunkey commented 2 years ago

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