From f9037dcbd836d23f38f26846904ed666ef246adb Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Tue, 8 Aug 2017 20:27:37 +0200 Subject: [PATCH 1/4] Fix playback not starting in some cirrcumstances - Should fix #330 --- resources/lib/PlexAPI.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/lib/PlexAPI.py b/resources/lib/PlexAPI.py index 65db0967..b58ff222 100644 --- a/resources/lib/PlexAPI.py +++ b/resources/lib/PlexAPI.py @@ -2395,9 +2395,11 @@ class API(): log.error('Could not temporarily download subtitle %s' % url) return else: + log.debug('Writing temp subtitle to %s' % path) r.encoding = 'utf-8' with open(path, 'wb') as f: - f.write(r.content) + # r.content does not always seem to be encoded! + f.write(tryEncode(r.content)) return path def GetKodiPremierDate(self): From 83b18faac17c60a0c4334a97cfa5a8c4a0ed847f Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Tue, 8 Aug 2017 20:44:36 +0200 Subject: [PATCH 2/4] Fix first artist [missing tag] (Reset your DB!) - Thanks @angelblue05 - Fixes #308 --- resources/lib/kodidb_functions.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/resources/lib/kodidb_functions.py b/resources/lib/kodidb_functions.py index 503dfcc2..5f289dac 100644 --- a/resources/lib/kodidb_functions.py +++ b/resources/lib/kodidb_functions.py @@ -1280,7 +1280,14 @@ class Kodidb_Functions(): try: artistid = self.cursor.fetchone()[0] except TypeError: - self.cursor.execute("select coalesce(max(idArtist),0) from artist") + # Krypton has a dummy first entry idArtist: 1 strArtist: + # [Missing Tag] strMusicBrainzArtistID: Artist Tag Missing + if v.KODIVERSION >= 17: + self.cursor.execute( + "select coalesce(max(idArtist),1) from artist") + else: + self.cursor.execute( + "select coalesce(max(idArtist),0) from artist") artistid = self.cursor.fetchone()[0] + 1 query = ( ''' From 5f79214148a89c9b1a209d196adc472d3d86a9aa Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Tue, 8 Aug 2017 21:05:31 +0200 Subject: [PATCH 3/4] Update Czech translation --- .../language/resource.language.cs_CZ/strings.po | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/resources/language/resource.language.cs_CZ/strings.po b/resources/language/resource.language.cs_CZ/strings.po index 782a4887..974cfa33 100644 --- a/resources/language/resource.language.cs_CZ/strings.po +++ b/resources/language/resource.language.cs_CZ/strings.po @@ -105,6 +105,11 @@ msgctxt "#30031" msgid "I own this Plex Media Server" msgstr "Tento Plex Media Server je můj" +# Kodi context menu entry for movie and episode information screen +msgctxt "#30032" +msgid "Information" +msgstr "Informace" + msgctxt "#30035" msgid "Number of recent Music Albums to show:" msgstr "Zobrazit počet naposledy přidaných hudebních alb:" @@ -1808,18 +1813,18 @@ msgstr "Pouze chybějící" # Message in the PKC settings if user has not logged in to plex.tv msgctxt "#39226" msgid "Not logged in to plex.tv" -msgstr "" +msgstr "Nepřihlášeno k plex.tv" # Message in the PKC settings if user is logged in to plex.tv msgctxt "#39227" msgid "Logged in to plex.tv" -msgstr "" +msgstr "Přihlášeno k plex.tv" # Message in the PKC settings to display the plex.tv username. Leave the colon # : msgctxt "#39228" msgid "Plex user:" -msgstr "" +msgstr "Uživatel plexu:" # Plex Artwork.py msgctxt "#39250" @@ -2103,6 +2108,7 @@ msgstr "" msgctxt "#39717" msgid "PKC uses free additional artwork from www.themoviedb.org. Many thanks!" msgstr "" +"PKC používá dodatečné obrázky z www.themoviedb.org. Děkujeme mnohokrát!" # Shown during very first PKC setup only msgctxt "#39718" @@ -2110,8 +2116,10 @@ msgid "" "Do you want to replace your custom user ratings with an indicator of how " "many versions of a media item you posses?" msgstr "" +"Chcete nahradit uživatelské hodnocení indikátorem počtu verzí médií které " +"jsou k dispozici?" # In PKC Settings under Sync msgctxt "#39719" msgid "Replace user ratings with number of media versions" -msgstr "" +msgstr "Nahradit uživatelské hodnocení počtem verzí média" From 368c9024583fc8fdffb9b403356ec8fb45aff179 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Tue, 8 Aug 2017 21:30:07 +0200 Subject: [PATCH 4/4] Version bump --- README.md | 4 ++-- addon.xml | 9 +++++++-- changelog.txt | 7 ++++++- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a5d41149..1b98a04d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -[![stable version](https://img.shields.io/badge/stable_version-1.8.5-blue.svg?maxAge=60&style=flat) ](https://dl.bintray.com/croneter/PlexKodiConnect/bin/repository.plexkodiconnect/repository.plexkodiconnect-1.0.0.zip) -[![beta version](https://img.shields.io/badge/beta_version-1.8.7-red.svg?maxAge=60&style=flat) ](https://dl.bintray.com/croneter/PlexKodiConnect_BETA/bin-BETA/repository.plexkodiconnectbeta/repository.plexkodiconnectbeta-1.0.0.zip) +[![stable version](https://img.shields.io/badge/stable_version-1.8.8-blue.svg?maxAge=60&style=flat) ](https://dl.bintray.com/croneter/PlexKodiConnect/bin/repository.plexkodiconnect/repository.plexkodiconnect-1.0.0.zip) +[![beta version](https://img.shields.io/badge/beta_version-1.8.8-red.svg?maxAge=60&style=flat) ](https://dl.bintray.com/croneter/PlexKodiConnect_BETA/bin-BETA/repository.plexkodiconnectbeta/repository.plexkodiconnectbeta-1.0.0.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 9499dd5f..0f6064ec 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - + @@ -59,7 +59,12 @@ Indbygget Integration af Plex i Kodi Tilslut Kodi til din Plex Media Server. Dette plugin forudsætter, at du administrere alle dine videoer med Plex (og ikke med Kodi). Du kan miste data som allerede er gemt i Kodi video og musik-databaser (dette plugin ændrer direkte i dem). Brug på eget ansvar! Brug på eget ansvar - version 1.8.7: + version 1.8.8 +- Fix playback not starting in some circumstances +- Fix first artist "missing" tag (Reset your DB!) +- Update Czech translation + +version 1.8.7 (beta only): - Some fixes to playstate reporting, thanks @RickDB - Add Kodi info screen for episodes in context menu - Fix PKC asking for trailers not working diff --git a/changelog.txt b/changelog.txt index 6213c72e..e3c5f2df 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ -version 1.8.7: +version 1.8.8 +- Fix playback not starting in some circumstances +- Fix first artist "missing" tag (Reset your DB!) +- Update Czech translation + +version 1.8.7 (beta only): - Some fixes to playstate reporting, thanks @RickDB - Add Kodi info screen for episodes in context menu - Fix PKC asking for trailers not working