Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Kodi path substitution NOOB question on how to use space
#1
I am a NOOB when come to path substitution. Can some please help with how to use “space” while defining path substitution in advancesettings.xml and also how to validate its working via KODI debug log?

Below is my path substitution in the advancesettings.xml

 
xml:

<pathsubstitution>
<substitute>
<from>nfs://192.168.1.117/volume1/4K_Content/4K Movies/</from>
<to>/home/osmc/4K_Direct/4K Movies/</to>
</substitute>
<substitute>
<from>nfs://192.168.1.117/volume1/4K_Content/4K Tv Shows/</from>
<to>/home/osmc/4K_Direct/4K Tv Shows/</to>
</substitute>
<substitute>
<from>nfs://192.168.1.117/volume1/4K_Content/Test Clips/</from>
<to>/home/osmc/4K_Direct/Test Clips/</to>
</substitute>

<substitute>
<from>nfs://192.168.1.117/volume1/Movie_Belly/</from>
<to>/home/osmc/Movie_Belly/</to>
</substitute>
<substitute>
<from>nfs://192.168.1.117/volume1/TVShows_Belly/</from>
<to>/home/osmc/TVShows_Belly/</to>
</substitute>
</pathsubstitution>
Reply
#2
My dumb questions:
- Why would you need path substitution at all? Kodi should be perfectly able to handle those 'from' paths from your Synology NAS.
- Why do you keep multiple paths for (4k) movies and tv shows?
Reply
#3
(2019-09-17, 05:00)Klojum Wrote: My dumb questions:
- Why would you need path substitution at all? Kodi should be perfectly able to handle those 'from' paths from your Synology NAS.
- Why do you keep multiple paths for (4k) movies and tv shows?

It’s a long story and I won’t want to anger any KODI users with my feedback.....

Only for me when playing 4K movies via KODI GUI mounted NFS my OSMC powered VERO4K BOX crashing couple of min in to the movie...

When I use Direct mount via the fstab and play all movies playing without any issues. This may be an unique issue for mysetup.

I got 4x media players at home + my MAC and want to use this feature as otherwise I can’t have centra DB for my content.

I already reviewed the KODI wiki and no explanation on how to use a space.

Appreciate if you can help with my question.
Reply
#4
(2019-09-17, 06:43)sniferx1 Wrote: It’s a long story and I won’t want to anger any KODI users with my feedback.....
You can only educate us with your findings.

(2019-09-17, 06:43)sniferx1 Wrote: When I use Direct mount via the fstab and play all movies playing without any issues. This may be an unique issue for mysetup.
Okay, that's a viable reason. Perhaps you can ask for more info at the OSMC forum on this.

(2019-09-17, 06:43)sniferx1 Wrote: I already reviewed the KODI wiki and no explanation on how to use a space.
Spaces can be critical in certain situations. In command line use and in terminal sessions text strings must be quoted whenever there is a space in the filenames, otherwise commands and parameters cannot be dissected properly.

I use under_scores instead as you already do, or forget spaces altogether in foldernames, such as "TestClips" or "4KTvShows". In a GUI it should be no problem using spaces in folders or filenames.
Reply
#5
(2019-09-17, 07:19)Klojum Wrote:
(2019-09-17, 06:43)sniferx1 Wrote: It’s a long story and I won’t want to anger any KODI users with my feedback.....
You can only educate us with your findings.

(2019-09-17, 06:43)sniferx1 Wrote: When I use Direct mount via the fstab and play all movies playing without any issues. This may be an unique issue for mysetup.
Okay, that's a viable reason. Perhaps you can ask for more info at the OSMC forum on this.

(2019-09-17, 06:43)sniferx1 Wrote: I already reviewed the KODI wiki and no explanation on how to use a space.
Spaces can be critical in certain situations. In command line use and in terminal sessions text strings must be quoted whenever there is a space in the filenames, otherwise commands and parameters cannot be dissected properly.

I use under_scores instead as you already do, or forget spaces altogether in foldernames, such as "TestClips" or "4KTvShows". In a GUI it should be no problem using spaces in folders or filenames.

Is this mean I can’t have spaces in advancesettings.xml for path substitution?

Reason is I already added all of my content to the central DB and renaming the folders will impact the current content paths....

Can you suggest a way to overcome this by showing me how to use a space in my provided XML?

It’s its not possible I understand and want a confirmation.
Reply
#6
I can't confirm anything. But mostly if it comes to linux and spaces in filesnames, those names are quoted. Like "Test Clips". Maybe you should test that.
(2019-09-17, 06:43)sniferx1 Wrote: When I use Direct mount via the fstab and play all movies playing without any issues.
Have you ever tried to use symlinks on the OS side instead of path-substitution in Kodi?
Reply
#7
(2019-09-20, 06:42)DaVu Wrote: I can't confirm anything. But mostly if it comes to linux and spaces in filesnames, those names are quoted. Like "Test Clips". Maybe you should test that.
(2019-09-17, 06:43)sniferx1 Wrote: When I use Direct mount via the fstab and play all movies playing without any issues.
Have you ever tried to use symlinks on the OS side instead of path-substitution in Kodi?

Thanks again for your help and feedback with steps. I love to use the symlinks on my boxes but the issue is I already got a very heavy content lib of Movies / TV Shows and Music worth 10TB and 10000+ items in central MYSQL lib running in my NAS.

I have spend many months to get all content updates with custom posters, title names and really can’t afford to spend time of rescrapping the lib again.

Other challenge is I got 4 OSMC Vero boxes around my house and all connecting to a central DB.

I will try your tip with the using “” and will post a debug log to get this confirms.

Thanks again for helping me with this question.
Reply
#8
I have spaces in my path substitutions in advanced settings.xml

Are you sure you have a problem? Maybe it’s just your editor showing colours?
Reply
#9
(2019-09-20, 08:11)HomerJau Wrote: I have spaces in my path substitutions in advanced settings.xml

Are you sure you have a problem? Maybe it’s just your editor showing colours?


Thanks. I need a way to confirm this working or not.... also the support. I will post the debug logs soon.

Thanks for your help and much appreciated.
Reply
#10
you can use spaces verbatim in local paths.

for urls, you have to follow the rule of urls. special chars, such as space must be url encoded. replace ' ' with %20
Reply
#11
(2019-09-20, 08:21)spiff Wrote: you can use spaces verbatim in local paths.

for urls, you have to follow the rule of urls. special chars, such as space must be url encoded. replace ' ' with %20

Thanks a lot. This mean for below URL I need to use %20

nfs://192.168.1.117/volume1/4K_Content/4K%20Movies
Reply
#12
indeed.
Reply
#13
(2019-09-20, 08:27)spiff Wrote: indeed.

Thanks
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi path substitution NOOB question on how to use space0