Fix time sync for Music items
This commit is contained in:
parent
e73b467904
commit
43a7886eae
2 changed files with 3 additions and 3 deletions
|
@ -744,10 +744,10 @@ class Kodidb_Functions():
|
||||||
query = ' '.join((
|
query = ' '.join((
|
||||||
"SELECT idSong",
|
"SELECT idSong",
|
||||||
"FROM song",
|
"FROM song",
|
||||||
"WHERE iTimesPlayed IS NULL OR iTimesPlayed = ''"
|
"WHERE iTimesPlayed = ?"
|
||||||
))
|
))
|
||||||
try:
|
try:
|
||||||
rows = self.cursor.execute(query)
|
rows = self.cursor.execute(query, (0, ))
|
||||||
except:
|
except:
|
||||||
return []
|
return []
|
||||||
ids = []
|
ids = []
|
||||||
|
|
|
@ -1582,7 +1582,7 @@ class LibrarySync(Thread):
|
||||||
self.showKodiNote(string(39407), forced=False)
|
self.showKodiNote(string(39407), forced=False)
|
||||||
elif enableBackgroundSync:
|
elif enableBackgroundSync:
|
||||||
# Check back whether we should process something
|
# Check back whether we should process something
|
||||||
if now - lastProcessing > 5:
|
if now - lastProcessing > 10:
|
||||||
window('emby_dbScan', value="true")
|
window('emby_dbScan', value="true")
|
||||||
self.processItems()
|
self.processItems()
|
||||||
window('emby_dbScan', clear=True)
|
window('emby_dbScan', clear=True)
|
||||||
|
|
Loading…
Reference in a new issue