diff --git a/ari/cache.py b/ari/cache.py index 5992c80..08bccd8 100644 --- a/ari/cache.py +++ b/ari/cache.py @@ -136,6 +136,8 @@ class Cache: async with self.cache_lock: fp = f"{self._directory}/{link_hash(link)}" if self._links.get(link): + # update last playback + self._links[link] = (time.time_ns(), *self._links[link][1:]) return CacheContextManager(self, fp) else: await self._download_file(link)