Can we modify a Directory item URL (plugin)?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Temhil Offline
Skilled Python Coder
Posts: 395
Joined: Apr 2008
Reputation: 1
Location: Canada
Post: #11
ppic Wrote:don't you need to refresh container?
Yes, it crossed my mine, but since the the ListItem are passed by copy to the addDirectortItem and not by reference, that won't work.
I was trying something like that since I did it in a script, but the pkugin does not allows as much a script does, still good to know how it works.

[Image: passionxbmc_signature.png]
_____________________________

Repositories Installer: select and install unofficial repositories / TAC.TV: watch videos on TAC.TV
Installer Passion-XBMC: Download and Install Add-ons (pre-Dharma only)

[Image: project_thin_badge.gif]
find quote
Temhil Offline
Skilled Python Coder
Posts: 395
Joined: Apr 2008
Reputation: 1
Location: Canada
Post: #12
Another quick question (I know againConfused Big Grin) about jmarshall explanation on setResolvedUrl():

jmarshall Wrote:Nope. It's this scenario:

1. You give us a list of videos, but the URLs of those videos need to be resolved directly before playback, not on listing (eg they use a URL which times out after a while, or some cookie, or require quite a lot of processing to determine the real URL).

2. Thus, you instead provide the URL of the video as a link back to your plugin (with isFolder set to false).

3. When the user clicks on a file XBMC calls your plugin.

4. Your plugin then figures out the real URL of the video and calls setResolvedUrl().

5. XBMC plays the real URL.

Cheers,
Jonathan


In your example we are talking about video, it would be very similar with music or picture, we would have XBMC player player the media.

But in case of a program what would happen?

Does it makes sense to use setResolvedUrl()?

It makes sense to set the isFolder to false and call the plugin in order to process what we want, but in which case (for a program plugin) it would make sens to use setResolvedUrl()?

I am asking since I am currently working on a program plugin anf I have this type of scenario.

[Image: passionxbmc_signature.png]
_____________________________

Repositories Installer: select and install unofficial repositories / TAC.TV: watch videos on TAC.TV
Installer Passion-XBMC: Download and Install Add-ons (pre-Dharma only)

[Image: project_thin_badge.gif]
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
Post: #13
setResolvedUrl() likely won't do anything at all for executable content.

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
Post Reply