/[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 1649 by torben, Sun Dec 4 15:06:39 2011 UTC revision 1650 by torben, Sun Dec 4 16:31:58 2011 UTC
# Line 57  def buildList(url,title): Line 57  def buildList(url,title):
57          m=re.compile('<title>(.+?)</title><url>(.+?)</url><cover>(.+?)</cover><description>(.*)</description>').findall(link)          m=re.compile('<title>(.+?)</title><url>(.+?)</url><cover>(.+?)</cover><description>(.*)</description>').findall(link)
58          l=len(m)          l=len(m)
59          for name,url,thumb,description in m:                                  for name,url,thumb,description in m:                        
                 infoLabels = {}  
                 infoLabels['title'] = name  
                 infoLabels['plot'] = description          
60    
61                  listitem = xbmcgui.ListItem(label = name, label2='test', iconImage = 'DefaultFolder.png', thumbnailImage = thumb)                  listitem = xbmcgui.ListItem(label = name, label2='test', iconImage = 'DefaultFolder.png', thumbnailImage = thumb)
                 listitem.setInfo('video', infoLabels)  
62                  listitem.setProperty('Fanart_Image', fanartImage)                  listitem.setProperty('Fanart_Image', fanartImage)
63                    if mode == '50':
64                            infoLabels = {}
65                            infoLabels['title'] = name
66                            infoLabels['plot'] = description        
67                            listitem.setInfo('video', infoLabels)
68    
69                  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)
70                  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)

Legend:
Removed from v.1649  
changed lines
  Added in v.1650

  ViewVC Help
Powered by ViewVC 1.1.20