Helix and Path Substitution
#1
Is xbmc.translatepath broken?

I'm trying to get the substituted path for my Thumbnail folder but it only returns the default translated path.

Path Substitution works (Snippet from log)
Code:
17:49:56 T:10252   DEBUG:   Registering substition pair:
17:49:56 T:10252   DEBUG:     From: [C:\Kodi\portable_data\userdata\Thumbnails\]
17:49:56 T:10252   DEBUG:     To:   [smb://192.168.0.51/XBMC/Media/Thumbnails/]
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Help?
Reply
#2
Sources.xml also doesn't translate when substituted.

Code:
<substitute>
<from>special://profile/sources.xml</from>
<to>D:/Dropbox/XBMC/userdata/sources.xml</to>
</substitute>

Code:
18:17:40 T:6776   DEBUG:   Registering substition pair:
18:17:40 T:6776   DEBUG:     From: [C:\Kodi\portable_data\userdata\sources.xml]
18:17:40 T:6776   DEBUG:     To:   [D:/Dropbox/XBMC/userdata/sources.xml]

Sources detected and works fine in kodi, but to python it reports default location.

Code:
sourcepath = xbmc.translatePath(os.path.join('special://profile/','sources.xml'))
sources.xml = C:\Kodi\portable_data\userdata\sources.xml
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Help?
Reply
#3
I think in short, path substitution was a hack and is used for things it's not supposed to be used for
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#4
(2015-02-23, 01:26)Martijn Wrote: I think in short, path substitution was a hack and is used for things it's not supposed to be used for
Thanks for the info, any chance to add support for substituted paths? or maybe a json query that returns actual paths?
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Help?
Reply
#5
Has anything changed in this case? Is there any way to get substituted paths?
Reply

Logout Mark Read Team Forum Stats Members Help
Helix and Path Substitution0