コード例 #1
0
ファイル: player.py プロジェクト: azumimuo/family-xbmc-addon
 def onPlayBackStopped(self):
     try:
         bookmarks.deleteBookmark(self.name, self.imdb)
         ok = int(self.currentTime) > 180 and (self.currentTime / self.totalTime) <= .92
         if ok: bookmarks.addBookmark(self.currentTime, self.name, self.imdb)
     except:
         pass
     try:
         ok = self.currentTime / self.totalTime >= .8
         if ok: self.setWatchedStatus()
     except:
         pass
コード例 #2
0
 def onPlayBackStopped(self):
     try:
         bookmarks.deleteBookmark(self.name, self.imdb)
         ok = int(self.currentTime) > 180 and (self.currentTime / self.totalTime) <= .92
         if ok: bookmarks.addBookmark(self.currentTime, self.name, self.imdb)
     except:
         pass
     try:
         ok = self.currentTime / self.totalTime >= .9
         if ok: self.setWatchedStatus()
     except:
         pass