Kodi Community Forum
Can I use PM3.HD Library TvShows ListView on my plugin? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+---- Forum: Skin Archive (https://forum.kodi.tv/forumdisplay.php?fid=179)
+----- Forum: PM3.HD (https://forum.kodi.tv/forumdisplay.php?fid=75)
+----- Thread: Can I use PM3.HD Library TvShows ListView on my plugin? (/showthread.php?tid=52472)



Can I use PM3.HD Library TvShows ListView on my plugin? - queeup - 2009-06-08

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


- jmarshall - 2009-06-09

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.


- queeup - 2009-06-09

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')



- queeup - 2009-06-09

One more question. Can i activate Library mode inside plugin code?