2014-07-15, 13:37
I have a simple addon that add a folder with last videos from a site, and categories.
In Yatse I can see the folders, but when I get to the playable videos, it returns nothing, for what I was told my addon has to be browsable via VFS.
My function to add Links:
What kind of property Am I missing?
It's something like setProperty('IsPlayable', 'true'), setProperty('mimetype', 'video/x-msvideo') or setProperty("Video", "true"). Or ir some setInfo? Or nothing of this at all?
Right now I can't experiment so I'm asking so to have a better aim to what to try at night
In Yatse I can see the folders, but when I get to the playable videos, it returns nothing, for what I was told my addon has to be browsable via VFS.
My function to add Links:
Code:
def addDir(name,url,mode,iconimage,pasta,total,duration,informacao):
u=sys.argv[0]+"?url="+urllib.quote_plus(url)+"&mode="+str(mode)+"&name="+urllib.quote_plus(name)
ok=True
liz=xbmcgui.ListItem(name, iconImage="DefaultFolder.png", thumbnailImage=iconimage)
liz.setProperty('fanart_image',addonfolder+'/fanart.jpg')
if informacao <> '': liz.setInfo( type="Video", infoLabels=informacao )
if duration <> '':
liz.addStreamInfo('Video', {"duration":duration})
ok=xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=u,listitem=liz,isFolder=pasta,totalItems=total)
return ok
What kind of property Am I missing?
It's something like setProperty('IsPlayable', 'true'), setProperty('mimetype', 'video/x-msvideo') or setProperty("Video", "true"). Or ir some setInfo? Or nothing of this at all?
Right now I can't experiment so I'm asking so to have a better aim to what to try at night