From 45378edbe8bf6e59e7f04786e1ec71431f703556 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Thu, 27 Oct 2016 04:56:11 -0500 Subject: [PATCH] Fix tvtunes visibility --- resources/lib/entrypoint.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/resources/lib/entrypoint.py b/resources/lib/entrypoint.py index c3d221e1..de23a836 100644 --- a/resources/lib/entrypoint.py +++ b/resources/lib/entrypoint.py @@ -400,9 +400,7 @@ def getThemeMedia(): xbmcvfs.mkdir(library) # Set custom path for user - tvtunes_path = xbmc.translatePath( - "special://profile/addon_data/script.tvtunes/").decode('utf-8') - if xbmcvfs.exists(tvtunes_path): + if xbmc.getCondVisibility('System.HasAddon(script.tvtunes)'): tvtunes = xbmcaddon.Addon(id="script.tvtunes") tvtunes.setSetting('custom_path_enable', "true") tvtunes.setSetting('custom_path', library)