From 42f8d91ace07b845cd102e495186c7e0837f4023 Mon Sep 17 00:00:00 2001 From: im85288 Date: Wed, 24 Jun 2015 18:05:52 +0100 Subject: [PATCH] added a warn on sync where tvtunes cannot set the settings file. --- resources/lib/Entrypoint.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/resources/lib/Entrypoint.py b/resources/lib/Entrypoint.py index 75ef56ae..8500748e 100644 --- a/resources/lib/Entrypoint.py +++ b/resources/lib/Entrypoint.py @@ -151,6 +151,12 @@ def getThemeMedia(): tvtunes.setSetting('custom_path_enable', "true") tvtunes.setSetting('custom_path', library) xbmc.log("TV Tunes custom path is enabled and set.") + else: + # if it does not exist this will not work so warn user, often they need to edit the settings first for it to be created. + dialog = xbmcgui.Dialog() + dialog.ok('Warning', 'The settings file does not exist in tvtunes. Go to the tvtunes addon and change a setting, then come back and re-run') + return + # Create library directory if not xbmcvfs.exists(library):