mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Prevent multiple version writing
This commit is contained in:
parent
31755845fc
commit
673315e46c
2 changed files with 2 additions and 1 deletions
|
@ -23,6 +23,7 @@ class Embydb_Functions():
|
||||||
def get_version(self, version=None):
|
def get_version(self, version=None):
|
||||||
|
|
||||||
if version is not None:
|
if version is not None:
|
||||||
|
self.embycursor.execute("DELETE FROM version")
|
||||||
query = "INSERT INTO version(idVersion) VALUES (?)"
|
query = "INSERT INTO version(idVersion) VALUES (?)"
|
||||||
self.embycursor.execute(query, (version,))
|
self.embycursor.execute(query, (version,))
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -54,7 +54,7 @@ class Items(object):
|
||||||
if total == 0:
|
if total == 0:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
log.info("Processing %s: %s", process, items)
|
#log.info("Processing %s: %s", process, items)
|
||||||
if pdialog:
|
if pdialog:
|
||||||
pdialog.update(heading="Processing %s: %s items" % (process, total))
|
pdialog.update(heading="Processing %s: %s items" % (process, total))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue