/[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 3250 by torben, Thu Feb 28 11:03:28 2019 UTC revision 3251 by torben, Thu Feb 28 11:10:40 2019 UTC
# Line 357  def play_real_video(url, name, position) Line 357  def play_real_video(url, name, position)
357      listitem = xbmcgui.ListItem(      listitem = xbmcgui.ListItem(
358          label=name, iconImage='DefaultVideo.png', thumbnailImage=image)          label=name, iconImage='DefaultVideo.png', thumbnailImage=image)
359      listitem.setInfo(type="Video", infoLabels={"Title": name})      listitem.setInfo(type="Video", infoLabels={"Title": name})
360      listitem.setProperty('ResumeTime', '300')  
361      listitem.setProperty('TotalTime', '3000')      listitem.setProperty('StartOffset', str(position) )
362    
363      if len(subtitleurl) > 0:      if len(subtitleurl) > 0:
364          listitem.setSubtitles([subtitleurl])          listitem.setSubtitles([subtitleurl])
# Line 376  def play_real_video(url, name, position) Line 376  def play_real_video(url, name, position)
376    
377    
378    
     if xbmc.Player().isPlaying():  
   
         if (position > 0):  
             while (player.getTotalTime() == 0.0): #Vent indtil vi har beregnet hvor langt klippet er  
                 xbmc.sleep(250)  
   
             print( "[Todic] totalTime " +  str( player.getTotalTime() ))  
             player.seekTime(position)  
   
   
379      #Holder python kørernde indtil at det bliver bedt om at stoppe      #Holder python kørernde indtil at det bliver bedt om at stoppe
380      while (not xbmc.abortRequested):      while (not xbmc.abortRequested):
381          player.tick()          player.tick()

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

  ViewVC Help
Powered by ViewVC 1.1.20