mrkipling/maraschino — pull request #215 by N3MIS15 (2012-09-15 01:32:10+00:00)
Title: cache recently added in database for offline use

This adds a new table to the database (RecentlyAdded) and stores the recently added information for each XBMC server whenever the recently added modules poll XBMC. The recently added modules will also download the thumbnail images and store them in DATA_DIR/cache/xbmc//recent_/ as .jpg.

There is only ever 25 images in each media type folder. When the recently added list changes old unused images are deleted and replaced by the new .jpg

The database information can then be used for when the XBMC server is offline as "last known" results.

When/if the server gets deleted, the database entries and thumbnail cache for that server also get deleted.

I've tested this on my local XBMC server and 2 other "remote" servers. But as always, It could do with some more :)