Fix tvtunes visibility

This commit is contained in:
angelblue05 2016-10-27 04:56:11 -05:00
parent aea14cfcb2
commit 45378edbe8

View file

@ -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)