Posts: 81
Joined: Jul 2004
Reputation:
0
I have a folder in a SMB share on my NAS server that contains all my music playlists. How do I get XBMC (Eden/11) to look in that folder for playlists instead of the default playlists path in the userdata folder (i.e., "Users\<your_user_name>\AppData\Roaming\XBMC\userdata\playlists\")?
Posts: 31,445
Joined: Jan 2011
2012-07-04, 12:36
(This post was last modified: 2012-07-04, 12:38 by Ned Scott.)
Path subs (wiki). Playlists are the original use for path subs, actually :)
Posts: 31,445
Joined: Jan 2011
Posts: 13,684
Joined: Mar 2010
Reputation:
507
PatK
Team-Kodi Member
Posts: 13,684
2012-07-05, 03:11
(This post was last modified: 2012-07-05, 03:14 by PatK.)
Just a quick off topic question, I note your slashes in the <from> statement lean back, while the <to> lean forward...?
e.g.
<substitute>
<from>special://masterprofile/Thumbnails/</from>
<to>SMB://192.168.0.11/xbmc/Library/Application Support/XBMC/userdata/Thumbnails/</to>
</substitute>
Posts: 31,445
Joined: Jan 2011
Because it's substituting a Windows file path with a network file path. It works.
Posts: 81
Joined: Jul 2004
Reputation:
0
So am I misunderstanding how playlists in XBMC work? If not, why would my playlists not show up?
Posts: 31,445
Joined: Jan 2011
2012-07-05, 10:10
(This post was last modified: 2012-07-05, 10:10 by Ned Scott.)
I meant the slashes.
I think XBMC needs to use a "special://" protocol format for it to work (not entirely sure). Try this:
Code:
<advancedsettings>
<pathsubstitution>
<substitute>
<from>special://musicplaylists/</from>
<to>smb://nasserver/playlists/music/</to>
</substitute>
</pathsubstitution>
</advancedsettings>
Posts: 203
Joined: Apr 2012
Reputation:
7
Zokkel
Senior Member
Posts: 203
IIRC Windows uses back slashes and Linux/OSX forward slashes,
so depending on your OS you should use one of the two, not both...
Windows 10 Pro (64bit), Kodi v19.1 "Matrix"
Intel NUC8i3BEH (Samsung 970 Evo, G. Skill Ripjaws 8GB)
Samsung UE49KS7000, Logitech Harmony remote 350
AudioEngine D1, Synology DS218j NAS (SMB protocol)
Posts: 31,445
Joined: Jan 2011
(2012-07-05, 12:08)Zokkel Wrote: IIRC Windows uses back slashes and Linux/OSX forward slashes,
so depending on your OS you should use one of the two, not both...
That doesn't matter for path subs...
Posts: 31,445
Joined: Jan 2011
(2012-07-06, 09:47)DiGiTYZED Wrote: BINGO!!! That did it! Now my playlists show up in XBMC. Thanks a lot!
Good to hear! I'll work this into the wiki somewhere now that we have confirmation.
Posts: 81
Joined: Jul 2004
Reputation:
0
Is it safe to assume this works the same for video (special://videoplaylists/) and mixed playlists (special://mixedplaylists/)?
Also when playing a playlist, it takes some time to actually load the songs (at least 10+ seconds) - is there a way to speed that up or not have it preload everything first?
Posts: 31,445
Joined: Jan 2011
Not sure.
Special protocol (wiki) only lists special://videoplaylists and special://musicplaylists . It might work with something like special://profile/playlists/ to get all of them.