/[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 3143 by torben, Wed Nov 23 08:06:06 2016 UTC revision 3146 by torben, Wed Nov 23 09:44:02 2016 UTC
# Line 3  Line 3 
3    
4  '''  '''
5      Todic plugin for XBMC      Todic plugin for XBMC
6      Version 0.0.17      Version 0.0.18
7  '''  '''
8    
9  import sys  import sys
# Line 125  class TodicPlayer(xbmc.Player): Line 125  class TodicPlayer(xbmc.Player):
125          open_url_safe(url)          open_url_safe(url)
126    
127      def tick(self):      def tick(self):
128          if ( self.isPlaying() ):          if ( self.isPlaying() ):
129              self.playingPosition = self.getTime()              self.playingPosition = self.getTime()
130              now = time()              now = time()
131              #print "[Todic] tick " + str(now) + " " + str(self.lastReport) + " : " +str(now - self.lastReport)              #print "[Todic] tick " + str(now) + " " + str(self.lastReport) + " : " +str(now - self.lastReport)
# Line 319  def play_real_video(url, name): Line 319  def play_real_video(url, name):
319      # kan ikke loade subtitles hvis foerend playeren koerer      # kan ikke loade subtitles hvis foerend playeren koerer
320      count = 0      count = 0
321      while not xbmc.Player().isPlaying():      while not xbmc.Player().isPlaying():
322          xbmc.sleep(500)          xbmc.sleep(250)
323          count += 1          count += 1
324          if count > 10:          if count > 10:
325              break              break
# Line 334  def play_real_video(url, name): Line 334  def play_real_video(url, name):
334          #Holder python kørernde indtil at det bliver bedt om at stoppe          #Holder python kørernde indtil at det bliver bedt om at stoppe
335          while (not xbmc.abortRequested):          while (not xbmc.abortRequested):
336                  player.tick()                  player.tick()
337                  xbmc.sleep(100)                  xbmc.sleep(250)
338    
339    
340    

Legend:
Removed from v.3143  
changed lines
  Added in v.3146

  ViewVC Help
Powered by ViewVC 1.1.20