From 8c6dd251941b0f3d687ee1b848c2862e82ee3410 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Tue, 29 Mar 2016 20:17:07 +0200 Subject: [PATCH] Fix PlexCompanion TypeError --- README.md | 1 + resources/lib/plexbmchelper/settings.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 374f7f19..f3bbf8b6 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,7 @@ Solutions are unlikely due to the nature of these issues - **Plex updates:** PlexKodiConnect continuously polls the Plex Media Server for changes. If something on the PMS has changed, this change is synced to Kodi. Hence if you rescan your entire library, a long PlexKodiConnect re-sync is triggered. - **Subtitles**: external Plex subtitles (separate file, e.g. mymovie.srt) can be used, but it is impossible to label them correctly/tell what language they are in - **Direct Paths:** If you use direct paths, your (initial) sync will be slower +- **Background Sync:** If you toggle the viewstate of an item to (un)watched somewhere else outside of Kodi/PKC, this change is only synched with a full sync. Plex does not communicate this toggling to anyone. **Known Bugs:** - **Plex Music:** Plex Music for direct paths does not work yet. diff --git a/resources/lib/plexbmchelper/settings.py b/resources/lib/plexbmchelper/settings.py index 9c960add..e722b565 100644 --- a/resources/lib/plexbmchelper/settings.py +++ b/resources/lib/plexbmchelper/settings.py @@ -9,7 +9,10 @@ guisettingsXML = utils.guisettingsXML() def getGUI(name): try: - return list(guisettingsXML.iter(name))[0].text + ans = list(guisettingsXML.iter(name))[0].text + if ans is None: + ans = '' + return ans except: return ""