From e1c7ab5b04f8efb41164ed9254f9ab8d8cd7f665 Mon Sep 17 00:00:00 2001 From: Croneter Date: Mon, 30 Apr 2018 14:16:45 +0200 Subject: [PATCH 1/4] PEP8 --- resources/lib/artwork.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/lib/artwork.py b/resources/lib/artwork.py index 84d7b612..8b58fdde 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: From 952261fb5a9b443c7b071ef4208ae6e97b977d0d Mon Sep 17 00:00:00 2001 From: Croneter Date: Mon, 30 Apr 2018 14:18:14 +0200 Subject: [PATCH 2/4] Add some comments --- resources/lib/artwork.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/lib/artwork.py b/resources/lib/artwork.py index 8b58fdde..5ab1199c 100644 --- a/resources/lib/artwork.py +++ b/resources/lib/artwork.py @@ -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): From b357f43e7919a028d50f1fb052811b5dd43c896a Mon Sep 17 00:00:00 2001 From: Croneter Date: Wed, 2 May 2018 19:15:55 +0200 Subject: [PATCH 3/4] Revert "Use list instead of set" This reverts commit 5cea57e935c98607ec1894f4fa669c8a7b67e38c. Fixes #460 Fixes #458 --- resources/lib/entrypoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}, From aa1afba4177f513b4dc59fc4b09800f5a852b87d Mon Sep 17 00:00:00 2001 From: Croneter Date: Wed, 2 May 2018 20:00:53 +0200 Subject: [PATCH 4/4] Version bump --- README.md | 2 +- addon.xml | 8 ++++++-- changelog.txt | 4 ++++ 3 files changed, 11 insertions(+), 3 deletions(-) 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