IsPlayable property and xbmcplugin.setFileUrl()
#16
perfectly understandable Smile

i'm not sure what could/should be removed by not having default.py set in the callback url. all i did was change false to true calling StartScript.

But i would like to request that.

Also a regular listitem, i added a setPath() method. would there be anyway to grab the playlistitem and do the same thing.

i copied the listitem's setPath() method to playlistitem, but got a dll loader error in windows 7.

the reason, you wouldn't have to recreate all the info. i currently either pass all the info, which is huge when you have a plot or do what i do. make a youtube api call to refetch the same info.

maybe a method to get a playlistitem as a listitem?

edit: i use to just grab the infolabels eg ListItem.Plot. this worked good until you use a mouse and the focused item changed before the plugin is loaded.

edit2: if this isn't widely used yet, could i suggest changing the name. setFileUrl -> setResolvedUrl?
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#17
ticket #http://trac.xbmc.org/ticket/6016 two of the proposed changes i mentioned in here, diff file attached. rename and default.py
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#18
+1 for the setFileUrl -> setResolvedUrl
Always read the XBMC online-manual, FAQ and search and search the forum before posting.
For troubleshooting and bug reporting please read how to submit a proper bug report.

If you're interested in writing addons for xbmc, read docs and how-to for plugins and scripts ||| http://code.google.com/p/xbmc-addons/
Reply
#19
Thanks jmarshall, the new YouTube plugin 1.4 supports this now.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply

Logout Mark Read Team Forum Stats Members Help
IsPlayable property and xbmcplugin.setFileUrl()0