mirror of
https://github.com/glomatico/gamdl.git
synced 2025-01-23 11:48:39 +00:00
save cover lru cache
This commit is contained in:
parent
72df094194
commit
8926052751
@ -622,6 +622,7 @@ class Downloader:
|
||||
final_location.parent.mkdir(parents=True, exist_ok=True)
|
||||
shutil.move(fixed_location, final_location)
|
||||
|
||||
@functools.lru_cache()
|
||||
def save_cover(self, cover_location: Path, cover_url: str) -> None:
|
||||
with open(cover_location, "wb") as f:
|
||||
f.write(self.get_cover(cover_url))
|
||||
|
Loading…
Reference in New Issue
Block a user