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
|
||||
|
||||
# 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
|
||||
self.deleteCachedArtwork(url)
|
||||
|
||||
|
|
|
@ -216,6 +216,7 @@ class LibrarySync(threading.Thread):
|
|||
message = "Repair sync"
|
||||
else:
|
||||
message = "Initial sync"
|
||||
utils.window('emby_initialScan', value="true")
|
||||
|
||||
pDialog = self.progressDialog("%s" % message, forced=True)
|
||||
starttotal = datetime.now()
|
||||
|
|
|
@ -69,7 +69,8 @@ class Service():
|
|||
|
||||
"emby_online", "emby_serverStatus", "emby_onWake",
|
||||
"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:
|
||||
utils.window(prop, clear=True)
|
||||
|
|
Loading…
Reference in a new issue