Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Can I use pathsubstitution to change playlist location?
#1
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?
Reply
#2
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
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
#3
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
Reply
#4
Can't confirm that.
I do use
<from>special://masterprofile/Playlists</from>
and it works.

Maybe specify the profile?
special://masterprofile/videoplaylists
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
#5
I don't get it. Neither of your suggestions work for me either. WTF?
Reply
#6
Nevermind. It looks like the problem is with my build. I'll report back once I have it solved.
Reply
#7
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
Samsung ES7005 55" led tv - Denon AVR-3313 - NAD C275BEE - B&W DM683 - B&W HTM61 - B&W 686
Intel NUC D34010WYK - 128GB Crucial ssd, Built in IR Receiver
And a Logitech Harmony Touch to control it all. https://libreelec.tv
Retired: Asus EB1501P ION2 - OCZ Vertex 2 64gb ssd - Built in IR Receiver
Reply
#8
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.
Reply
#9
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>
Best regards to all
BikerDude
HTPC with 16gb ram M-Audio LT1010 sound card feeding McIntosh 7205 power amp Magneplanar 2.7r and Velodyne dd12. All connected to Sony smart tv.
All media on 2 fully redundant TrueNas VMs installed on Proxmox servers. Running Kodi. Everything works brilliantly until i screw it up
Reply

Logout Mark Read Team Forum Stats Members Help
Can I use pathsubstitution to change playlist location?0