--- misc/xbmc/plugin.video.todic/default.py 2011/12/03 12:01:56 1646
+++ misc/xbmc/plugin.video.todic/default.py 2011/12/03 13:53:47 1647
@@ -53,10 +53,15 @@
mode = '1'
folder = True
- m=re.compile('
(.+?)(.+?)(.+?)').findall(link)
+ m=re.compile('(.+?)(.+?)(.+?)(.*)').findall(link)
l=len(m)
- for name,url,thumb in m:
- listitem = xbmcgui.ListItem(label = name, iconImage = 'DefaultFolder.png', thumbnailImage = thumb)
+ for name,url,thumb,description in m:
+ infoLabels = {}
+ infoLabels['title'] = name
+ infoLabels['plot'] = description
+
+ listitem = xbmcgui.ListItem(label = name, label2='test', iconImage = 'DefaultFolder.png', thumbnailImage = thumb)
+ listitem.setInfo('video', infoLabels)
u = sys.argv[0] + "?mode=" + urllib.quote_plus(mode) + "&name=" + urllib.quote_plus(name) + "&url=" + urllib.quote_plus(url)
ok = xbmcplugin.addDirectoryItem(handle = int(sys.argv[1]), url = u, listitem = listitem, isFolder = folder, totalItems = l)
xbmcplugin.endOfDirectory(int(sys.argv[1]))