From 6d7d36e3b782d73dbafaf66951959269ccbbf5a1 Mon Sep 17 00:00:00 2001 From: bain Date: Mon, 22 Aug 2022 00:14:52 +0200 Subject: [PATCH] update last playback time --- ari/cache.py | 2 ++ 1 file changed, 2 insertions(+) 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)