2017-01-03, 00:54
(2017-01-02, 07:12)life02 Wrote:(2017-01-02, 04:04)Happyoldguy Wrote:(2017-01-02, 01:14)jonib Wrote: As far as I know and the JSON-RPC Wiki you need to provide a path or a video id (movieid or episodeid) to play a video. A title or a label is not a unique identifier so there could be 10 videos with the same name.
To be able to use the title do a search to get the id, then use that in the open method.
jonib
Thanks Jonib
I do see that in the JSON-RPC Wiki. what about tagging? I'm working on IFTTT with Google assistant and would like to say "Ok Google" I want to watch <movie name>. I'm working on a python script to handle the GET from IFTTT and process the the suggestion you had.
Thanks for the input.
Happyoldguy, yeah that's exactly what I was trying to do without making an intermediary script for mapping name to id.
jonib, Thanks, I'll look into VideoLibrary.GetMovies.
Ok so last night I dabbled with VideoLibrary.GetMovies and this seems to work to get me the file of the movie by title. Now I need to see how to make this work. If you come up with something please let me know. If I get the solution Ill let you know here.
Code:
http://192.168.15.117/jsonrpc?request={"jsonrpc": "2.0", "params": {"sort": {"order": "ascending", "method": "title"}, "filter": {"operator": "is", "field": "title", "value": "<movie title here>"}, "properties": ["title", "art", "file"]}, "method": "VideoLibrary.GetMovies", "id": "libMovies"}