2014-03-12, 02:49
(2012-07-02, 11:56)Millencolin007 Wrote: Setting the movie as unwatched does not work. Tried the following two requests
Code:curl -H "Content-Type: application/json" -d "{\"jsonrpc\": \"2.0\", \"method\": \"VideoLibrary.SetMovieDetails\", \"params\" : { \"movieid\" : 1, \"playcount\" : 0, \"lastplayed\" : \"\" }, \"id\" : 1 }" http://127.0.0.1:8080/jsonrpc | python -mjson.tool
I just tried this in Gotham Beta-1. Setting lastplayed to "" doesn't seem to be working for me. The API call returns OK, but when querying the details immediately after the call, the old lastplayed date string remains. Is there a special way to assign a string value to empty now?
Clicking the marked as unwatched button in the UI returns the value to "" as expected.