mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Added tv tunes compatibility
Automatically set the proper path for tv tunes
This commit is contained in:
parent
7b041d8795
commit
56c2c9aef2
1 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue