Can I use PM3.HD Library TvShows ListView on my plugin?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
queeup Offline
Fan
Posts: 734
Joined: Feb 2009
Reputation: 15
Post: #1
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: librarytvshowslistview.jpg]
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
Post: #2
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.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
queeup Offline
Fan
Posts: 734
Joined: Feb 2009
Reputation: 15
Post: #3
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')
find quote
queeup Offline
Fan
Posts: 734
Joined: Feb 2009
Reputation: 15
Post: #4
One more question. Can i activate Library mode inside plugin code?
find quote