2022-08-25, 14:15
Based on a question from a iOS Remote App user I looked into the following use case which can happen when there inconsistencies in the Kodi database.
The inconsistency is to still have a database entry for a file which does not exist anymore. This can be reached via simply renaming a file which was already scanned to the database. In my case I renamed one of my movie files from "title.mpg" to "_title.mpg".
When I now add the movieid to the playlist the JSON API responds with no error. This still makes sense as for now we are just moving around an id. But when I trigger playback via Player.Open (with the playlist ID and index) I still receive the response "OK" via the JSON API, even though the Kodi UI shows an error because it can obviously not find and play the file.
Wouldn't it make sense to respond with the same error message on UI and JSON API?
The inconsistency is to still have a database entry for a file which does not exist anymore. This can be reached via simply renaming a file which was already scanned to the database. In my case I renamed one of my movie files from "title.mpg" to "_title.mpg".
When I now add the movieid to the playlist the JSON API responds with no error. This still makes sense as for now we are just moving around an id. But when I trigger playback via Player.Open (with the playlist ID and index) I still receive the response "OK" via the JSON API, even though the Kodi UI shows an error because it can obviously not find and play the file.
Wouldn't it make sense to respond with the same error message on UI and JSON API?