#NEWLINE# def onPlayBackStopped( self ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# bookmarks . deleteBookmark ( self . name , self . imdb ) #NEWLINE# ok = ( ( int ( self . currentTime ) > 180 ) and ( ( self . currentTime / self . totalTime ) <= 0.92 ) ) #NEWLINE# if ok : #NEWLINE# #INDENT# bookmarks . addBookmark ( self . currentTime , self . name , self . imdb ) #NEWLINE# #UNINDENT# #UNINDENT# except : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# ok = ( ( self . currentTime / self . totalTime ) >= 0.9 ) #NEWLINE# if ok : #NEWLINE# #INDENT# self . setWatchedStatus ( ) #NEWLINE# #UNINDENT# #UNINDENT# except : #NEWLINE# #INDENT# pass