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
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