/[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 3251 by torben, Thu Feb 28 11:10: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    
# Line 366  def play_real_video(url, name, position) Line 369  def play_real_video(url, name, position)
369      player = TodicPlayer()      player = TodicPlayer()
370      player.play(str(url), listitem)      player.play(str(url), listitem)
371    
     # kan ikke loade subtitles hvis foerend playeren koerer  
     count = 0  
     while not xbmc.Player().isPlaying():  
         xbmc.sleep(250)  
         count += 1  
         if count > 10:  
             break  
   
   
372    
373      #Holder python kørernde indtil at det bliver bedt om at stoppe      #Holder python kørernde indtil at det bliver bedt om at stoppe
374      while (not xbmc.abortRequested):      while (not xbmc.abortRequested):

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

  ViewVC Help
Powered by ViewVC 1.1.20