update last playback time
This commit is contained in:
parent
24ff39a2a8
commit
6d7d36e3b7
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue