diff --git a/README.md b/README.md index 4cd200a9..210e9e46 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ [![stable version](https://img.shields.io/badge/stable_version-1.8.18-blue.svg?maxAge=60&style=flat) ](https://github.com/croneter/binary_repo/raw/master/stable/repository.plexkodiconnect/repository.plexkodiconnect-1.0.2.zip) -[![beta version](https://img.shields.io/badge/beta_version-2.0.21-red.svg?maxAge=60&style=flat) ](https://github.com/croneter/binary_repo/raw/master/beta/repository.plexkodiconnectbeta/repository.plexkodiconnectbeta-1.0.2.zip) +[![beta version](https://img.shields.io/badge/beta_version-2.0.22-red.svg?maxAge=60&style=flat) ](https://github.com/croneter/binary_repo/raw/master/beta/repository.plexkodiconnectbeta/repository.plexkodiconnectbeta-1.0.2.zip) [![Installation](https://img.shields.io/badge/wiki-installation-brightgreen.svg?maxAge=60&style=flat)](https://github.com/croneter/PlexKodiConnect/wiki/Installation) [![FAQ](https://img.shields.io/badge/wiki-FAQ-brightgreen.svg?maxAge=60&style=flat)](https://github.com/croneter/PlexKodiConnect/wiki/faq) diff --git a/addon.xml b/addon.xml index d0e18b86..a13db1b9 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - + @@ -67,7 +67,11 @@ Нативная интеграция сервера Plex в Kodi Подключите Kodi к своему серверу Plex. Плагин предполагает что вы управляете своими видео с помощью Plex (а не в Kodi). Вы можете потерять текущие базы данных музыки и видео в Kodi (так как плагин напрямую их изменяет). Используйте на свой страх и риск Используйте на свой страх и риск - version 2.0.21 (beta only): + version 2.0.22 (beta only): +- Fix Recently Added for tv shows not working +- Fix PKC crashing on startup + +version 2.0.21 (beta only): - Fix TV show artwork Kodi native library (reset Kodi DB!) - Cache missing posters and backgrounds/fanart on Kodi startup - Add toggle to deactivate image caching during playback diff --git a/changelog.txt b/changelog.txt index c6eeb344..6d5b8e35 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,7 @@ +version 2.0.22 (beta only): +- Fix Recently Added for tv shows not working +- Fix PKC crashing on startup + version 2.0.21 (beta only): - Fix TV show artwork Kodi native library (reset Kodi DB!) - Cache missing posters and backgrounds/fanart on Kodi startup diff --git a/resources/lib/artwork.py b/resources/lib/artwork.py index 84d7b612..5ab1199c 100644 --- a/resources/lib/artwork.py +++ b/resources/lib/artwork.py @@ -12,8 +12,8 @@ import requests from xbmc import sleep, translatePath from xbmcvfs import exists -from utils import window, settings, language as lang, kodi_sql, try_encode, \ - thread_methods, dialog, exists_dir, try_decode +from utils import settings, language as lang, kodi_sql, try_encode, try_decode,\ + thread_methods, dialog, exists_dir import state ############################################################################### @@ -107,7 +107,7 @@ class Image_Cache_Thread(Thread): 'over-loaded. Sleep %s seconds before trying ' 'again to download %s', 2**sleeptime, double_urldecode(url)) - sleep((2**sleeptime)*1000) + sleep((2**sleeptime) * 1000) sleeptime += 1 continue except Exception as e: @@ -162,9 +162,11 @@ class Artwork(): return LOG.info('Caching has not been completed - caching %s major images', len(artworks_to_cache)) + # Caching %s images self.queue.put(ArtworkSyncMessage(lang(30006) % len(artworks_to_cache))) for url in artworks_to_cache: self.queue.put(url[0]) + # Major image caching done self.queue.put(ArtworkSyncMessage(lang(30007))) def fullTextureCacheSync(self): diff --git a/resources/lib/entrypoint.py b/resources/lib/entrypoint.py index 7ec66d72..1bd5318e 100644 --- a/resources/lib/entrypoint.py +++ b/resources/lib/entrypoint.py @@ -369,7 +369,7 @@ def getRecentEpisodes(viewid, mediatype, tagname, limit): append_show_title = settings('RecentTvAppendShow') == 'true' append_sxxexx = settings('RecentTvAppendSeason') == 'true' # First we get a list of all the TV shows - filtered by tag - allshowsIds = list() + allshowsIds = set() params = { 'sort': {'order': "descending", 'method': "dateadded"}, 'filter': {'operator': "is", 'field': "tag", 'value': "%s" % tagname},