xbmc/xbmc — pull request #1605 by Montellese (2012-10-12 06:45:45+00:00)
Title: jsonrpc: force media item refresh after changing an item's details (fixes #13173)

As already briefly discussed on IRC with @cptspiff and @jmarshallnz this is the hammer approach to fixing http://trac.xbmc.org/ticket/13173. The better approach would be to only update the item that has changed but there are some problems with that. We don't have the original CFileItem object used in the GUI listing that needs to be updated. This can be worked around by retrieving the full "equivalent" CFileItem object from the database but that instance won't have all the additional info that e.g. the CVideoThumbLoader loads in the background of a GUI listing. So updating that item with the newly retrieved one could result in missing artwork or streamdetails or whatever is retrieved asynchronously.

The best approach would be to provide information on which fields/properties/values to update because JSON-RPC know which properties have changed. But that would require quite a bit of extra logic (which I'll try to implement but is most likely out of scope for Frodo).