/[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 3243 by torben, Mon Sep 18 18:06:48 2017 UTC revision 3244 by torben, Mon Feb 18 17:38:13 2019 UTC
# Line 3  Line 3 
3    
4  '''  '''
5      Todic plugin for XBMC      Todic plugin for XBMC
6      Version 1.7      Version 1.7.1
7  '''  '''
8    
9  import sys  import sys
# Line 148  class TodicPlayer(xbmc.Player): Line 148  class TodicPlayer(xbmc.Player):
148      def tick(self):      def tick(self):
149          #print "[Todic] Tick: " + str( self.isPlaying() )          #print "[Todic] Tick: " + str( self.isPlaying() )
150          if ( self.isPlaying() ):          if ( self.isPlaying() ):
151              self.playingPosition = self.getTime()              tmpTime = self.getTime():
152              now = time()  
153              #print "[Todic] tick " + str(now) + " " + str(self.lastReport) + " : " +str(now - self.lastReport)              #only report time if it has changed in the mean time
154              if ( (now - self.lastReport) > 60.0):              if tmpTime != self.playingPosition:
155                  self.lastReport = now                  self.playingPosition = tmpTime
156                  self.reportPlaytime("playing")                  now = time()
157                    #print "[Todic] tick " + str(now) + " " + str(self.lastReport) + " : " +str(now - self.lastReport)
158                    if ( (now - self.lastReport) > 60.0):
159                        self.lastReport = now
160                        self.reportPlaytime("playing")
161    
162      def reportPlaytime(self, subaction):      def reportPlaytime(self, subaction):
163          if (self.playingPosition > 60):          if (self.playingPosition > 60):

Legend:
Removed from v.3243  
changed lines
  Added in v.3244

  ViewVC Help
Powered by ViewVC 1.1.20