--- misc/xbmc/plugin.video.todic/default.py 2018/11/17 21:57:54 3243 +++ misc/xbmc/plugin.video.todic/default.py 2019/02/18 17:38:13 3244 @@ -3,7 +3,7 @@ ''' Todic plugin for XBMC - Version 1.7 + Version 1.7.1 ''' import sys @@ -148,12 +148,16 @@ def tick(self): #print "[Todic] Tick: " + str( self.isPlaying() ) if ( self.isPlaying() ): - self.playingPosition = self.getTime() - now = time() - #print "[Todic] tick " + str(now) + " " + str(self.lastReport) + " : " +str(now - self.lastReport) - if ( (now - self.lastReport) > 60.0): - self.lastReport = now - self.reportPlaytime("playing") + tmpTime = self.getTime(): + + #only report time if it has changed in the mean time + if tmpTime != self.playingPosition: + self.playingPosition = tmpTime + now = time() + #print "[Todic] tick " + str(now) + " " + str(self.lastReport) + " : " +str(now - self.lastReport) + if ( (now - self.lastReport) > 60.0): + self.lastReport = now + self.reportPlaytime("playing") def reportPlaytime(self, subaction): if (self.playingPosition > 60):