2013-09-03, 09:16
I tried upgrading from 12.2 to the nightlies and was unable to get path substitution working correctly. I tried regressing throughout the nightlies and this problem seems to be present throughout all the nightly builds of gotham. When I looked through the debug logs it looks like its picking it the substitutions and getting log messages saying its doing it. Which look like they are coming from here https://github.com/xbmc/xbmc/blob/master....cpp#L1000, but they don't seem to get used.
The the method URIUtils::SubstitutePath @ https://github.com/xbmc/xbmc/blob/master...s.cpp#L396 looks like its handling the replacements after advancedsettings init, but when did a quick search of github it doesn't look like that method is being used in relation to the masterprofile anymore. I didn't really dig any further than that, so I could be completely wrong.
The the method URIUtils::SubstitutePath @ https://github.com/xbmc/xbmc/blob/master...s.cpp#L396 looks like its handling the replacements after advancedsettings init, but when did a quick search of github it doesn't look like that method is being used in relation to the masterprofile anymore. I didn't really dig any further than that, so I could be completely wrong.
Code:
<pathsubstitution>
<substitute>
<from>special://masterprofile/Thumbnails/Video/</from>
<to>smb://atlas.local/xbmc/userdata/Thumbnails/Video/</to>
</substitute>
<substitute>
<from>special://masterprofile/Thumbnails/Music/</from>
<to>smb://atlas.local/xbmc/userdata/Thumbnails/Music/</to>
</substitute>
<substitute>
<from>special://masterprofile/playlists/</from>
<to>smb://atlas.local/xbmc/userdata/playlists/</to>
</substitute>
<substitute>
<from>special://masterprofile/sources.xml</from>
<to>smb://atlas.local/xbmc/userdata/sources.xml</to>
</substitute>
<substitute>
<from>special://masterprofile/mediasources.xml</from>
<to>smb://atlas.local/xbmc/userdata/mediasources.xml</to>
</substitute>
</pathsubstitution>