Kodi Community Forum
Can I use pathsubstitution to change playlist location? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: Can I use pathsubstitution to change playlist location? (/showthread.php?tid=111250)



Can I use pathsubstitution to change playlist location? - RockDawg - 2011-09-29

I am running the nightlies and I've successfully set up pathsubstitution to use the Thumbnails folder on my central server in place of the default lolcation. I would like to do the same with my playlists, but I can't seem to get it to work. I've tried:

Code:
<pathsubstitution>
    <substitute>
        <from>special://videoplaylists</from>
        <to>smb://192.168.1.2/xbmc_stuff/playlists/video/</to>
    </substitute>
</pathsubstitution>

and

Code:
<pathsubstitution>
    <substitute>
        <from>special://masterprofile/videoplaylists</from>
        <to>smb://192.168.1.2/xbmc_stuff/playlists/video/</to>
    </substitute>
</pathsubstitution>

I thought I read somewhere that <pathsubstitution> could be used for any of the special:\\ paths. Am I doing something wrong or is it not possible?


- Martijn - 2011-09-29

Should be:
Code:
<from>special://masterprofile/Playlists</from>
<from>special://masterprofile/Playlists/Video</from>
<from>special://masterprofile/Playlists/Music</from>
<from>special://masterprofile/Playlists/Mixed</from>
Just like the folder structure in userdata


- RockDawg - 2011-09-29

I'm pretty sure I tried that too, but I'll double-check when I get home from work. But I thought:

special://videoplaylists = special://masterprofile/playlists/video


- Martijn - 2011-09-29

Can't confirm that.
I do use
<from>special://masterprofile/Playlists</from>
and it works.

Maybe specify the profile?
special://masterprofile/videoplaylists


- RockDawg - 2011-09-30

I don't get it. Neither of your suggestions work for me either. WTF?


- RockDawg - 2011-09-30

Nevermind. It looks like the problem is with my build. I'll report back once I have it solved.


- newphreak - 2011-10-02

For all you other users out there:
Code:
    <substitute>
      <from>special://masterprofile/playlists/video</from>
      <to>smb://192.168.1.143/playlists/</to>
    </substitute>
is the appropriate way of doing this. And it works Smile


- RockDawg - 2011-10-02

My problem turned out to be that I was using two <pathsubstitution> entries. One for my thumbnails and one for my playlists. They should have been two separate <substitute> entries nested under a single <pathsubstitution>. After changing that it works fine.

My final entry that works is:

Code:
<pathsubstitution>
        <substitute>
        <from>special://masterprofile/Thumbnails</from>
        <to>smb://192.168.1.20/xbmc_stuff/Thumbnails/</to>
        </substitute>
        <substitute>
        <from>special://masterprofile/playlists/</from>
        <to>smb://192.168.1.20/xbmc_stuff/playlists/</to>
        </substitute>
    </pathsubstitution>

That shares all my playlists, not just the video. Thanks everyone for you help. Especially newphreak as he ultimately figured out my problem in another thread.


RE: Can I use pathsubstitution to change playlist location? - BikerDude - 2019-06-24

hello all 

i do not know about such things and i tried based on my interpretation of the above and i get
<advancedsettings>
 <pathsubstitution>
  <substitute>
          <from>special://c:\user\uncle\appdata\roaming\kodi\userdata\playlists/music</from>
      <to>smb://z:/</to>
  </substitute>
 </pathsubstitution>


z is my mapped drive pointing to my music db 

I changed the "USER name to william on the htpc and that also does not work. What is wrong with my solution


Thank you in advance for your help
</advancedsettings>