Parsing error when using VideoLibrary.RemoveTVShow method

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
djbloc Offline
Junior Member
Posts: 6
Joined: Mar 2017
Reputation: 0
Post: #1
Hi

I'm trying to use the VideoLibrary.RemoveTVShow method on Kodi 17 (API Wiki) but I'm getting parse error in response.

Code:
curl -H "Content-Type: application/json" -X POST -d "{'params': {'tvshowid': 1, 'id': 2}, 'jsonrpc': '2.0', 'method': 'VideoLibrary.RemoveTVShow'}" http://192.168.1.10:8080/jsonrpc

Code:
{"error":{"code":-32700,"message":"Parse error."},"id":null,"jsonrpc":"2.0"}

What am I doing wrong?
find quote
ncarthy Offline
Member
Posts: 52
Joined: Aug 2010
Reputation: 0
Location: London
Post: #2
The "id" property is in the wrong place.

Code:
"{'params': {'tvshowid': 1}, 'id': 2, 'jsonrpc': '2.0', 'method': 'VideoLibrary.RemoveTVShow'}"
find quote
djbloc Offline
Junior Member
Posts: 6
Joined: Mar 2017
Reputation: 0
Post: #3
(2017-03-19 17:05)ncarthy Wrote:  The "id" property is in the wrong place.

Thanks for the suggestion. Although this doesn't seem to have fix the error. I still get the same response.
find quote
ncarthy Offline
Member
Posts: 52
Joined: Aug 2010
Reputation: 0
Location: London
Post: #4
Can you post the full curl command again? Maybe there is another formatting error somewhere.

Have you also checked that a tv show exists with id=1?
(This post was last modified: 2017-03-19 23:13 by ncarthy.)
find quote