2014-03-12, 19:15
(2014-03-12, 19:06)Montellese Wrote:(2014-03-12, 18:21)ben- Wrote: Great, thanks! Just to clarify, I would use "" (the empty string) to clear the field? This seems correct to me since the null value is used to ignore the attribute altogether when setting details.
Yup that's correct. But there is some logic in the database that doesn't let you reset lastplayed when the playcount is greater than 0.
That constraint is logical since there could never be a case where play count is non-zero with no last played time. I'm implementing "mark as watched" and "mark as unwatched" via the JSON API so I will always be modifying both attributes at the same time. Thanks again!