Newer
Older
import requests
from pathlib import Path
class CoverDownloader:
def download(self, url: str, filename: str):
if (Path(self.outdir) / f"{filename}.jpg").is_file() and self.cache:
with open(Path(self.outdir) / f"{filename}.jpg", "wb") as f: