Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cache recently added in database for offline use #215

Merged
merged 2 commits into from
Sep 18, 2012

Conversation

N3MIS15
Copy link
Collaborator

@N3MIS15 N3MIS15 commented Sep 15, 2012

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/server.label/recent_media.type/ as mediaid.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 mediaid.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 :)

@N3MIS15 N3MIS15 mentioned this pull request Sep 15, 2012
@an0Nym0us63
Copy link

any idea on when this will be merged?

@mrkipling mrkipling merged commit 6ebe492 into mrkipling:master Sep 18, 2012
@mrkipling
Copy link
Owner

Just tested and it works great, so merged it in. Good stuff!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants