Accessing a SMB share through a script

On OSMC, I have added several Samba shares from a NAS to the sources file and they can be played just fine. I am planning to write a bash script to automate the playing of videos from one of the sources. My question is about how to access the sources already saved to the OSMC sources file. I know I can access the videos using a syntax like this: “SMB:\192…” But is there another method that allows me to access the video through the saved sources in a script or do I have to use the SMB:\ directory everytime?

We believe this is a Kodi issue or a specific Kodi function and as such you should look at addressing the issue there.

1 Like