Context Menu item that creates a folder listing?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
jmarshall Offline
Team-XBMC Developer
Posts: 24,520
Joined: Oct 2003
Reputation: 138
Post: #11
Try Container.Update instead of Container.Refresh - by default Container.Update does not reset the browsing history (you can pass the replace parameter to do that, whereby it's identical to Container.Refresh)

Cheers,
Jonathan

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
HenrikDK Offline
Skilled Python Coder
Posts: 538
Joined: Jul 2007
Reputation: 17
Post: #12
jmarshall Wrote:Try Container.Update instead of Container.Refresh - by default Container.Update does not reset the browsing history (you can pass the replace parameter to do that, whereby it's identical to Container.Refresh)

Cheers,
Jonathan

Great it works just what we wanted, thanks a million Big Grin

And just for others trying to replicate the functionality, we now call:
Code:
cm.append( ( self.__language__( 30507 ), "XBMC.Container.Update(%s?path=%s&action=search&search=%s)" % ( sys.argv[0],  get("path"), urllib.quote_plus( url_title ) ) ) )

Resulting in the generation of a new folder listing with the search results, and allowing the user to continue their browsing by pressing the back button..
(This post was last modified: 2010-09-09 19:25 by HenrikDK.)
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,171
Joined: Nov 2003
Reputation: 81
Post: #13
brilliant. now you can use this to add a 'more videos from xxxx' feature, something i'm really missing from the old add-on Smile

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.
find quote
Popeye Offline
Posting Freak
Posts: 874
Joined: Aug 2009
Reputation: 25
Location: Sweden
Post: #14
This is great. Spent 2 hours going crazy about "XFILE::CPluginDirectory::AddItem - called with an invalid handle."

sverigesradio | Pneumatic | SABnzbd | XBMC that just works - openelec
find quote
Post Reply