Fix In Progress widgets not displaying anything and all shows being marked as watched
This commit is contained in:
parent
fde67483f4
commit
12b84b42bb
1 changed files with 2 additions and 1 deletions
|
@ -611,8 +611,9 @@ class KodiVideoDB(common.KodiDBBase):
|
|||
# Delete existing resume point
|
||||
self.cursor.execute('DELETE FROM bookmark WHERE idFile = ?', (file_id,))
|
||||
# Set watched count
|
||||
# Be careful to set playCount to None, NOT the int zero!
|
||||
self.cursor.execute('UPDATE files SET playCount = ?, lastPlayed = ? WHERE idFile = ?',
|
||||
(playcount, dateplayed, file_id))
|
||||
(playcount or None, dateplayed, file_id))
|
||||
# Set the resume bookmark
|
||||
if resume_seconds:
|
||||
self.cursor.execute(
|
||||
|
|
Loading…
Reference in a new issue