diff --git a/addon.xml b/addon.xml index 7c8563e2..3cfb98bc 100644 --- a/addon.xml +++ b/addon.xml @@ -1,7 +1,7 @@ diff --git a/changelog.txt b/changelog.txt index ebc301ad..a2eb7220 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ +version 1.1.68 +- Minor fixes + version 1.1.67 - Add option to limit items requested at once from server - Fix artwork cache diff --git a/resources/lib/artwork.py b/resources/lib/artwork.py index 9ca2d63a..5952c204 100644 --- a/resources/lib/artwork.py +++ b/resources/lib/artwork.py @@ -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) diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index 9226fadc..a4773ddb 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -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() @@ -934,17 +935,14 @@ class LibrarySync(threading.Thread): # Process individual episode if self.shouldStop(): - return False - - if pdialog: - percentage = int((float(count) / float(total))*100) - pdialog.update(percentage, message=title) - count += 1 + return False title = episode['SeriesName'] episodetitle = episode['Name'] if pdialog: + percentage = int((float(count) / float(total))*100) pdialog.update(percentage, message="%s - %s" % (title, episodetitle)) + count += 1 tvshows.add_updateEpisode(episode) else: self.logMsg("TVShows finished.", 2) @@ -1318,7 +1316,7 @@ class LibrarySync(threading.Thread): if utils.window('emby_syncRunning') != "true": self.logMsg("SyncDatabase onWake (started)", 0) librarySync = self.startSync() - self.logMsg("SyncDatabase onWake (finished) %s", librarySync, 0) + self.logMsg("SyncDatabase onWake (finished) %s" % librarySync, 0) if self.stop_thread: # Set in service.py diff --git a/resources/lib/playutils.py b/resources/lib/playutils.py index 04820ffd..688ca883 100644 --- a/resources/lib/playutils.py +++ b/resources/lib/playutils.py @@ -192,7 +192,7 @@ class PlayUtils(): item = self.item if (utils.settings('transcodeH265') == "true" and - result['MediaSources'][0]['Name'].startswith("1080P/H265")): + item['MediaSources'][0]['Name'].startswith("1080P/H265")): # Avoid H265 1080p self.logMsg("Option to transcode 1080P/H265 enabled.", 1) return False diff --git a/service.py b/service.py index 34182578..3579fe88 100644 --- a/service.py +++ b/service.py @@ -71,7 +71,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)