audioscrobbler: only send new user requests if cached results have expired
authorJamie Nicol <jamie@thenicols.net>
Mon, 6 Sep 2010 13:31:52 +0000 (14:31 +0100)
committerJamie Nicol <jamie@thenicols.net>
Mon, 6 Sep 2010 13:31:52 +0000 (14:31 +0100)
commitb43d1663fc6c66d75ca523a541bfbeff65a68806
treeaaf3117f74d489ca66f57f1b8949087ec327c0da
parentfc751780ad4804a93c66f1a5ebc0911de5392d1d
audioscrobbler: only send new user requests if cached results have expired

in rb_audioscrobbler_user_update, check first if the cached results for
are still valid before sending new requests.

Different requests have different lifetimes. For now recent artist
responses are valid for an hour, everything else for 24 hours.
This can be tweaked once we have a better idea of how well this works.
plugins/audioscrobbler/rb-audioscrobbler-user.c