mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Prevent deleting artwork during initial sync
This commit is contained in:
parent
a7131c2867
commit
e4fb2de7c2
3 changed files with 5 additions and 2 deletions
|
@ -332,7 +332,8 @@ class Artwork():
|
||||||
cacheimage = True
|
cacheimage = True
|
||||||
|
|
||||||
# Only for the main backdrop, poster
|
# Only for the main backdrop, poster
|
||||||
if imageType in ("fanart", "poster"):
|
if (utils.window('emby_initialScan') != "true" and
|
||||||
|
imageType in ("fanart", "poster")):
|
||||||
# Delete current entry before updating with the new one
|
# Delete current entry before updating with the new one
|
||||||
self.deleteCachedArtwork(url)
|
self.deleteCachedArtwork(url)
|
||||||
|
|
||||||
|
|
|
@ -216,6 +216,7 @@ class LibrarySync(threading.Thread):
|
||||||
message = "Repair sync"
|
message = "Repair sync"
|
||||||
else:
|
else:
|
||||||
message = "Initial sync"
|
message = "Initial sync"
|
||||||
|
utils.window('emby_initialScan', value="true")
|
||||||
|
|
||||||
pDialog = self.progressDialog("%s" % message, forced=True)
|
pDialog = self.progressDialog("%s" % message, forced=True)
|
||||||
starttotal = datetime.now()
|
starttotal = datetime.now()
|
||||||
|
|
|
@ -69,7 +69,8 @@ class Service():
|
||||||
|
|
||||||
"emby_online", "emby_serverStatus", "emby_onWake",
|
"emby_online", "emby_serverStatus", "emby_onWake",
|
||||||
"emby_syncRunning", "emby_dbCheck", "emby_kodiScan",
|
"emby_syncRunning", "emby_dbCheck", "emby_kodiScan",
|
||||||
"emby_shouldStop", "emby_currUser", "emby_dbScan", "emby_sessionId"
|
"emby_shouldStop", "emby_currUser", "emby_dbScan", "emby_sessionId",
|
||||||
|
"emby_initialScan"
|
||||||
]
|
]
|
||||||
for prop in properties:
|
for prop in properties:
|
||||||
utils.window(prop, clear=True)
|
utils.window(prop, clear=True)
|
||||||
|
|
Loading…
Reference in a new issue