/[projects]/misc/xbmc/plugin.video.todic/default.py
ViewVC logotype

Diff of /misc/xbmc/plugin.video.todic/default.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1646 by torben, Sat Dec 3 12:01:56 2011 UTC revision 1647 by torben, Sat Dec 3 13:53:47 2011 UTC
# Line 53  def buildList(url,title): Line 53  def buildList(url,title):
53                  mode = '1'                  mode = '1'
54                  folder = True                  folder = True
55    
56          m=re.compile('<title>(.+?)</title><url>(.+?)</url><cover>(.+?)</cover>').findall(link)          m=re.compile('<title>(.+?)</title><url>(.+?)</url><cover>(.+?)</cover><description>(.*)</description>').findall(link)
57          l=len(m)          l=len(m)
58          for name,url,thumb in m:                                  for name,url,thumb,description in m:                        
59                  listitem = xbmcgui.ListItem(label = name, iconImage = 'DefaultFolder.png', thumbnailImage = thumb)                  infoLabels = {}
60                    infoLabels['title'] = name
61                    infoLabels['plot'] = description        
62    
63                    listitem = xbmcgui.ListItem(label = name, label2='test', iconImage = 'DefaultFolder.png', thumbnailImage = thumb)
64                    listitem.setInfo('video', infoLabels)
65                  u = sys.argv[0] + "?mode=" + urllib.quote_plus(mode) + "&name=" + urllib.quote_plus(name) + "&url=" + urllib.quote_plus(url)                  u = sys.argv[0] + "?mode=" + urllib.quote_plus(mode) + "&name=" + urllib.quote_plus(name) + "&url=" + urllib.quote_plus(url)
66                  ok = xbmcplugin.addDirectoryItem(handle = int(sys.argv[1]), url = u, listitem = listitem, isFolder = folder, totalItems = l)                  ok = xbmcplugin.addDirectoryItem(handle = int(sys.argv[1]), url = u, listitem = listitem, isFolder = folder, totalItems = l)
67          xbmcplugin.endOfDirectory(int(sys.argv[1]))          xbmcplugin.endOfDirectory(int(sys.argv[1]))

Legend:
Removed from v.1646  
changed lines
  Added in v.1647

  ViewVC Help
Powered by ViewVC 1.1.20