Kodi Community Forum
Changing behavior of primary click on a ListItem - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Changing behavior of primary click on a ListItem (/showthread.php?tid=69855)



Changing behavior of primary click on a ListItem - dbuvid - 2010-02-08

Hi everyone, I've started writing an XBMC plugin and I've run into an issue. The service I'm writing a plugin for uses a php file that redirects to an .mp3 for playback. Problem is, these php files can only be used once to get to the .mp3. So I am wondering if there is any way I can change the behavior of an item in a plugin virtual folder list so that when the user clicks on it, it goes out and gets a new php file each time (it would still redirect to the same .mp3 essentially). I have a workaround that I think I can use if this is impossible, but I just wanted to check because I've looked at the python docs and didn't see anything.


- rwparris2 - 2010-02-09

I believe if you set your listitem to have the property IsPlayable equal to true and call back your plugin with setResolvedUrl it will work.