2022-10-11, 23:58
I am trying to get a call to work by searching on the "path" for movies.
I am testing via Firefox, and can get expected results with:
http://127.0.0.1:8080/jsonrpc?request={
"jsonrpc": "2.0",
"method": "VideoLibrary.GetMovies",
"params": {
"filter": {"field": "path", "operator": "startswith", "value": "plugin://plugin.video.plexkodiconnect.movies/"},
"sort": { "order": "ascending", "method": "label" },
"properties": ["title"]
},
"id": 1
}
However, I need to have the path include a question mark (which does exist for all Movies in my case), so exactly the same as above, but with additional character at the end of the path:
http://127.0.0.1:8080/jsonrpc?request={
"jsonrpc": "2.0",
"method": "VideoLibrary.GetMovies",
"params": {
"filter": {"field": "path", "operator": "startswith", "value": "plugin://plugin.video.plexkodiconnect.movies/?"},
"sort": { "order": "ascending", "method": "label" },
"properties": ["title"]
},
"id": 1
}
This gives no error, but also no results, which is incorrect, as all Movie paths do contain the question mark.
I've tried many variations on encoding the question mark, but I just can't seem to get the expected matches.
Any hints here?
I am testing via Firefox, and can get expected results with:
http://127.0.0.1:8080/jsonrpc?request={
"jsonrpc": "2.0",
"method": "VideoLibrary.GetMovies",
"params": {
"filter": {"field": "path", "operator": "startswith", "value": "plugin://plugin.video.plexkodiconnect.movies/"},
"sort": { "order": "ascending", "method": "label" },
"properties": ["title"]
},
"id": 1
}
However, I need to have the path include a question mark (which does exist for all Movies in my case), so exactly the same as above, but with additional character at the end of the path:
http://127.0.0.1:8080/jsonrpc?request={
"jsonrpc": "2.0",
"method": "VideoLibrary.GetMovies",
"params": {
"filter": {"field": "path", "operator": "startswith", "value": "plugin://plugin.video.plexkodiconnect.movies/?"},
"sort": { "order": "ascending", "method": "label" },
"properties": ["title"]
},
"id": 1
}
This gives no error, but also no results, which is incorrect, as all Movie paths do contain the question mark.
I've tried many variations on encoding the question mark, but I just can't seem to get the expected matches.
Any hints here?