Kodi Community Forum

Full Version: Can I use PM3.HD Library TvShows ListView on my plugin?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can i use this view on my plugins? I can't find proper id.

something like this code:
Code:
if (xbmc.getSkinDir() == "PM3.HD"):
    xbmc.executebuiltin('Container.SetViewMode(59)')
else:
    pass

Image
You shouldn't really be doing it via SetViewMode. Instead, you should simply be setting the content type and relying on the skin to offer the appropriate view types for the user to select from.
I didn't know that. Thanks for info. You are right, this is what i need Smile

Code:
xbmcplugin.setContent(int(sys.argv[1]), 'episodes')
One more question. Can i activate Library mode inside plugin code?