/[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 3254 by torben, Thu Feb 28 11:12:40 2019 UTC revision 3255 by torben, Mon Mar 4 13:36:03 2019 UTC
# Line 278  def buildList(url, title, endlist=True): Line 278  def buildList(url, title, endlist=True):
278  #               print "url:" + url  #               print "url:" + url
279  #               print "thumb:" + thumb  #               print "thumb:" + thumb
280          listitem = xbmcgui.ListItem(          listitem = xbmcgui.ListItem(
281              label=name, label2='test', iconImage='DefaultFolder.png', thumbnailImage=thumb)              label=name, label2='test', iconImage='DefaultFolder.png')
282          listitem.setProperty('Fanart_Image', fanartImage)          listitem.setProperty('Fanart_Image', fanartImage)
283          listitem.addContextMenuItems([('Refresh', 'Container.Refresh')])          listitem.addContextMenuItems([('Refresh', 'Container.Refresh')])
284    
# Line 286  def buildList(url, title, endlist=True): Line 286  def buildList(url, title, endlist=True):
286              infoLabels = {}              infoLabels = {}
287              infoLabels['title'] = name              infoLabels['title'] = name
288              infoLabels['playcount'] = playcount              infoLabels['playcount'] = playcount
289                if playcount > 0:
290                    listitem.setArt( {'thumb': thumb} ) #not pretty - but at least we can show a different icon for unwatched/watched in kodi18  
291              listitem.setInfo('video', infoLabels)              listitem.setInfo('video', infoLabels)
292                listitem.setProperty('IsPlayable', 'true')
293    
294          name = name.encode('UTF-8')          name = name.encode('UTF-8')
295    

Legend:
Removed from v.3254  
changed lines
  Added in v.3255

  ViewVC Help
Powered by ViewVC 1.1.20