From 56c2c9aef2e235be98c4b04e8804f0cf0e194b2e Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Wed, 17 Jun 2015 01:57:09 -0500 Subject: [PATCH] Added tv tunes compatibility Automatically set the proper path for tv tunes --- resources/lib/Entrypoint.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/resources/lib/Entrypoint.py b/resources/lib/Entrypoint.py index f04cae12..b18fe2c7 100644 --- a/resources/lib/Entrypoint.py +++ b/resources/lib/Entrypoint.py @@ -144,6 +144,14 @@ def getThemeMedia(): playback = "DirectStream" else:return + # Set custom path for user + tvtunes_path = xbmc.translatePath("special://profile/addon_data/script.tvtunes/") + if xbmcvfs.exists(tvtunes_path): + tvtunes = xbmcaddon.Addon(id="script.tvtunes") + tvtunes.setSetting('custom_path_enable', "true") + tvtunes.setSetting('custom_path', library) + xbmc.log("TV Tunes custom path is enabled and set.") + # Create library directory if not xbmcvfs.exists(library): xbmcvfs.mkdir(library)