def Do_SEARCH_RESULT(self):
vf = GetVideoFilesAPI(self.params["v"])
if vf:
for a in vf:
n = a[a.rfind("/")+1:]
if a.startswith("http"):
n = __language__(30039) + " " + n
else:
n = "YouTube: " + n
listitem = xbmcgui.ListItem(n, "", self.params.get("thumb"), self.params.get("thumb"), path=a)
listitem.setProperty('IsPlayable', 'true')
listitem.setInfo(type = "video", infoLabels = {'title': self.params.get("title")})
xbmcplugin.addDirectoryItem(self.handle, a, listitem)
if vf and __settings__.getSetting("ShowDownload") == "true":
for a in vf:
if a.startswith("http"):
listitem = xbmcgui.ListItem(__language__(30035) + " " + a[a.rfind("/")+1:], "", self.params.get("thumb"), self.params.get("thumb"))
xbmcplugin.addDirectoryItem(self.handle, self.GetURL(mode=VIDEO_DOWNLOAD, thumb=self.params.get("thumb"), v=base64.encodestring(a).strip()), listitem, False)
评论列表
文章目录