Kodi Community Forum

Full Version: Unable to search media by originaltitle
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I try to search for movies by either title or original title and find out that "originaltitle" is not a valid field in filter.
e.g. if I search movie for "1408" by filtering title:
Code:
{"jsonrpc": "2.0", "method": "VideoLibrary.GetMovies", "params": {"properties": ["title", "genre", "plot"], "sort": { "method": "label" }, "filter": {"field":"title","operator":"contains","value":"1408"}}, "id": 1}
get:
Code:
{"id":1,"jsonrpc":"2.0","result":{"limits":{"end":1,"start":0,"total":1},"movies":[{"genre":["Horror","Thriller"],"label":"1408","movieid":366,"plot":"A man who specializes in debunking paranormal occurrences checks into the fabled room 1408 in the Dolphin Hotel. Soon after settling in, he confronts genuine terror.","title":"1408"}]}}

However, if I search 'originaltitle' instead:
Code:
{"jsonrpc": "2.0", "method": "VideoLibrary.GetMovies", "params": {"properties": ["title", "genre", "plot"], "sort": { "method": "label" }, "filter": {"field":"originaltitle","operator":"contains","value":"1408"}}, "id": 1}
kodi returns:
Code:
{"error":{"code":-32602,"data":{"method":"VideoLibrary.GetMovies","stack":{"message":"Received value does not match any of the union type definitions","name":"filter","property":{"name":"method","type":"string"},"type":"object"}},"message":"Invalid params."},"id":1,"jsonrpc":"2.0"}

Kodi doesn't accept "originaltitle" as valid field. I wonder if there's a working around. Any help would be appreciated.