kodi refresh library command not working with recent kodi testbuilds
Posted: 04 Nov 2017, 14:19
hello everyone,
i ran into a following problem with kodi "refresh video library command" not working with recent kodi testbuilds.
i am using filebot (4.7.9) intalled on synology + filebot node (0.2.4) and i run the filebot command as a scheduled task. i've been using filebot with ease and these kodi builds handled everything properly, until recently - i found out my video library refresh stopped working after i updated my kodi testbuild to some version from June 2017.
after some digging, here is what i've found:
here is what it looks like in filebot output:
as you can see, the GET calls (GUI.ShowNotification and VideoLibrary.Scan) seems to pass OK, because kodi returns OK 200, with this body:
when i send the command manually via POST request to kodi like this:
url: http://192.168.0.100/jsonrpc?VideoLibrary.Scan
body (content-type application/json):
the kodi library updates just fine.
i ran into a following problem with kodi "refresh video library command" not working with recent kodi testbuilds.
i am using filebot (4.7.9) intalled on synology + filebot node (0.2.4) and i run the filebot command as a scheduled task. i've been using filebot with ease and these kodi builds handled everything properly, until recently - i found out my video library refresh stopped working after i updated my kodi testbuild to some version from June 2017.
after some digging, here is what i've found:
- in this kodi test build (link to a build description) https://forum.kodi.tv/showthread.php?ti ... pid2601683 there is a PR that made its way through:
- Include [pkg] PR:12281: [network] CHTTPJsonRpcHandler: limit any other request method than POST to ReadData permissions on the JSON-RPC API
here is what it looks like in filebot output:
Code: Select all
filebot -script 'dev:amc' /volume1/download/ --output /volume1/video/ --action move -non-strict --conflict auto --lang en --def 'subtitles=ces' 'clean=y' 'deleteAfterExtract=y' 'kodi=192.168.0.100:80' --log all --log-file '/volume1/@appstore/filebot-node/data/filebot.log'
------------------------------------------
<lines removed>
Notify Kodi: [host:192.168.0.100, port:80]
GET: http://192.168.0.100:80/jsonrpc?request={"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"FileBot+finished+processing+1+files","message":"\u2022+Mesage","image":"https://app.filebot.net/icon.png"},"id":1}
GET: http://192.168.0.100:80/jsonrpc?request={"jsonrpc":"2.0","method":"VideoLibrary.Scan","id":1}
Clean clutter files and empty folders
Done ヾ(@⌒ー⌒@)ノ
------------------------------------------
[Process completed]
Code: Select all
{
"jsonrpc": "2.0",
"error": {
"code": -32099,
"message": "Bad client permission."
},
"id": 1
}
url: http://192.168.0.100/jsonrpc?VideoLibrary.Scan
body (content-type application/json):
Code: Select all
[{"jsonrpc":"2.0","method":"VideoLibrary.Scan","id":7}]