ari

discord music bot
git clone git://git.bain.cz/ari.git
Log | Files | Refs

commit 6d7d36e3b782d73dbafaf66951959269ccbbf5a1
parent 24ff39a2a808955bc594af07f5cc9cabbd0715f4
Author: bain <bain@bain.cz>
Date:   Mon, 22 Aug 2022 00:14:52 +0200

update last playback time

Diffstat:
Mari/cache.py | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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)