/[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 3259 by torben, Sun Mar 10 21:37:47 2019 UTC revision 3260 by torben, Tue Mar 12 20:23:54 2019 UTC
# Line 3  Line 3 
3    
4  '''  '''
5      Todic plugin for XBMC      Todic plugin for XBMC
6      Version 1.8.1      Version 1.8.2
7  '''  '''
8    
9  import sys  import sys
# Line 285  def buildList(url, title, endlist=True): Line 285  def buildList(url, title, endlist=True):
285              label=name, label2='test', iconImage='DefaultFolder.png')              label=name, label2='test', iconImage='DefaultFolder.png')
286          listitem.setProperty('Fanart_Image', fanartImage)          listitem.setProperty('Fanart_Image', fanartImage)
287          listitem.addContextMenuItems([('Refresh', 'Container.Refresh')])          listitem.addContextMenuItems([('Refresh', 'Container.Refresh')])
288            listitem.setArt( {'thumb': thumb} )
289    
290          if mode == '50':          if mode == '50':
291              infoLabels = {}              infoLabels = {}
292              infoLabels['title'] = name              infoLabels['title'] = name
293              infoLabels['playcount'] = playcount              infoLabels['playcount'] = playcount
294              if playcount > 0:  #            if playcount > 0:
295                  listitem.setArt( {'thumb': thumb} ) #not pretty - but at least we can show a different icon for unwatched/watched in kodi18    #                listitem.setArt( {'thumb': thumb} ) #not pretty - but at least we can show a different icon for unwatched/watched in kodi18  
296              listitem.setInfo('video', infoLabels)              listitem.setInfo('video', infoLabels)
297    
298          name = name.encode('UTF-8')          name = name.encode('UTF-8')

Legend:
Removed from v.3259  
changed lines
  Added in v.3260

  ViewVC Help
Powered by ViewVC 1.1.20