/[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 1922 by torben, Wed Jan 30 07:26:42 2013 UTC revision 1923 by torben, Wed Jan 30 17:31:53 2013 UTC
# Line 3  Line 3 
3    
4  '''  '''
5      Todic plugin for XBMC      Todic plugin for XBMC
6      Version 0.0.7      Version 0.0.8
7  '''  '''
8    
9  import sys  import sys
# Line 139  def buildList(url,title, endlist=True): Line 139  def buildList(url,title, endlist=True):
139                          playcount = '0'                          playcount = '0'
140                  playcount = int(playcount)                  playcount = int(playcount)
141    
                 name = name.encode('latin-1')  
                 description = description.encode('latin-1')  
142    
143  ##              print "name:" + name  ##              print "name:" + name
144  #               print "url:" + url  #               print "url:" + url
# Line 157  def buildList(url,title, endlist=True): Line 155  def buildList(url,title, endlist=True):
155                          infoLabels['playcount'] = playcount                          infoLabels['playcount'] = playcount
156                          listitem.setInfo('video', infoLabels)                          listitem.setInfo('video', infoLabels)
157    
158                    name = name.encode('UTF-8')
159                    description = description.encode('UTF-8')
160    
161    
162                  u = sys.argv[0] + "?mode=" + urllib.quote(mode) + "&name=" + urllib.quote(name) + "&url=" + urllib.quote(url)                  u = sys.argv[0] + "?mode=" + urllib.quote(mode) + "&name=" + urllib.quote(name) + "&url=" + urllib.quote(url)
163                  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)
164    

Legend:
Removed from v.1922  
changed lines
  Added in v.1923

  ViewVC Help
Powered by ViewVC 1.1.20