2022-10-12, 01:05
Thanks for the response, I see the error of my ways.
What I really wanted to search against is field "file" , not "path".
But trying same example with this change produces the "Received value does not match any of the union type definitions" error, which I guess means that field "file" is not searchable like this:
http://127.0.0.1:8080/jsonrpc?request={
"jsonrpc": "2.0",
"method": "VideoLibrary.GetMovies",
"params": {
"filter": {"field": "file", "operator": "startswith", "value": "plugin://plugin.video.plexkodiconnect.movies/?"},
"sort": { "order": "ascending", "method": "label" },
"properties": ["title","file"]
},
"id": 1
}
What I am trying to do requires that I start with just a "file" (that does exist) like:
plugin://plugin.video.plexkodiconnect.movies/?mode=play&plex_id=13630&plex_type=movie&filename=12 Angry Men (1957).mp4
And use jsonrpc to search for the related data for this entry, I now see that it does not look like this is possible (search based only on "file")?
What I really wanted to search against is field "file" , not "path".
But trying same example with this change produces the "Received value does not match any of the union type definitions" error, which I guess means that field "file" is not searchable like this:
http://127.0.0.1:8080/jsonrpc?request={
"jsonrpc": "2.0",
"method": "VideoLibrary.GetMovies",
"params": {
"filter": {"field": "file", "operator": "startswith", "value": "plugin://plugin.video.plexkodiconnect.movies/?"},
"sort": { "order": "ascending", "method": "label" },
"properties": ["title","file"]
},
"id": 1
}
What I am trying to do requires that I start with just a "file" (that does exist) like:
plugin://plugin.video.plexkodiconnect.movies/?mode=play&plex_id=13630&plex_type=movie&filename=12 Angry Men (1957).mp4
And use jsonrpc to search for the related data for this entry, I now see that it does not look like this is possible (search based only on "file")?