Play file from NFS share through intent
Here is my use-case. To save bandwidth (which is expensive here), I download all my YouTube subscriptions between midnight at 6am. My script sends me and email with the list of fresh episodes and a link to the path on my NFS share where the files are saved.
I would like to click on these links, and have them queued in Kodi, via Yatse. To confirm, this will all be in File mode in Yatse. The files are not scanned into the library.
It seems at the moment there is not URL supported by Yatse to play a file directly. Please allow this kind of file queueing, e.g. with a nfs://path_to_server/path/to/file.mp4 kind of URL?
#1 Updated by Tolriq about 1 month ago
Sorry but no as nfs is not supported by Yatse. So if your Kodi have no access to those files Yatse should proxy them and it can't.
You need to either serve your files via http(s) or update your script to be direct Kodi json request (But will be broken in Kodi 18 as you can no more use get for JSON :()
#2 Updated by Francois about 1 month ago
Sorry, I left this part out. The NFS share is mounted in a local directory on my Kodi box. So Yatse can already see the files and I can play them on Kodi by choosing them in Yatse. They appear as regular files on the box.
I'm just looking for a way to send the intent to Yatse that it should play a file at a given location on the Kodi box.
Hope that makes more sense?
#3 Updated by Tolriq about 1 month ago
It was clear but you do understand that you are not the only user of Yatse ? :)
So if Yatse registers nfs links it means it can handle those because Yatse is also a local player, a Chromecast player and many things.
And Yatse does not support nfs so nfs links won't be registered sorry.
There's an API to play files via Yatse see Wiki but not just via simple urls.
#4 Updated by Francois about 1 month ago
Yes, I should never have mentioned NFS. Forget about the NFS part.
How about a custom URL scheme: for example: yatse://kodiserver/path/to/file ? Then Yatse registers for that intent, and relays the request using proper JSON? This might be useful for other things too.
Just a suggestion.
#7 Updated by Francois about 1 month ago
Ah, I wasn't aware of the Yatse API. I thought you were referring to the Kodi API.
Just noticed this:
To show the Files library part
Ok here is a different suggetions/request: Would it be possible to add an optional parameter to allow Yatse to open the specified directory (not play anything) - just to skip the manual actions of drilling down into the directory structure.
If the directory does not exist on the Kodi machine, ignore the query string and treat as normal.
If you can do that, then I can do the other stuff on my own.
#10 Updated by Francois about 1 month ago
Ok, I created HTML anchors in my email with href like this:
I realise this will stop working when GET requests aren't supported anymore.
But if I'm currently streaming from my Kodi box to Yatse on my phone, is there any such way to start the playback on my phone, not on the Kodi box itself?