diff --git a/addon.xml b/addon.xml index cec18c2c..f0557c63 100644 --- a/addon.xml +++ b/addon.xml @@ -1,7 +1,7 @@ diff --git a/changelog.txt b/changelog.txt index bc5c8342..d8a3d486 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,14 @@ +version 2.2.5 +- Add generate a new device Id option, found in the add-on settings > advanced. +- Offer to delete cached thumbnails upon database reset. +- Breaking fix for views. You will notice duplicates in your video nodes. When you have a moment to spare, run the refresh playlists/nodes action found by launching the emby add-on (this is not reversible). Your homescreen shortcuts actions will need to be redirected to the new playlists/nodes. +- Fix pictures, the shortcut should now appear under photo add-ons > emby. +- Fix view shortcuts to follow emby ordering. This changes the Emby.nodes.X ordering (automatically created shortcuts and via launching the emby add-on). This does not change the video nodes ordering. +- Fix ssl client certificate verification +- Fix resume +- Prevent artwork deletion from crashing the add-on +- Fix to import virtual season artwork + version 2.2.4 - Fix external subs being appended to direct play (via add-on playback) - First attempt at keeping Kodi awake during the initial sync diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index 10ed06ee..76f343d0 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -1161,6 +1161,8 @@ class LibrarySync(Thread): "until the database is reset.")) else: utils.reset() + break + window('emby_dbCheck', value="true") if not startupComplete: diff --git a/resources/lib/read_embyserver.py b/resources/lib/read_embyserver.py index cafc70bd..e0d55768 100644 --- a/resources/lib/read_embyserver.py +++ b/resources/lib/read_embyserver.py @@ -356,6 +356,32 @@ class Read_EmbyServer(): return views + def verifyView(self, parentid, itemid): + + belongs = False + + url = "{server}/emby/Users/{UserId}/Items?format=json" + params = { + + 'ParentId': parentid, + 'CollapseBoxSetItems': False, + 'IsVirtualUnaired': False, + 'IsMissing': False, + 'Recursive': True, + 'Ids': itemid + } + result = self.doUtils(url, parameters=params) + try: + total = result['TotalRecordCount'] + except TypeError: + # Something happened to the connection + pass + else: + if total: + belongs = True + + return belongs + def getMovies(self, parentId, basic=False, dialog=None): items = self.getSection(parentId, "Movie", basic=basic, dialog=dialog)