Prevent deleting artwork during initial sync

This commit is contained in:
angelblue05 2015-12-27 22:51:47 -06:00
parent a7131c2867
commit e4fb2de7c2
3 changed files with 5 additions and 2 deletions

View File

@ -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)

View File

@ -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()

View File

@ -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)