From 1f5b0e72173c2b23dd8885610b767b94d42353d2 Mon Sep 17 00:00:00 2001 From: nathom Date: Mon, 29 Mar 2021 08:41:54 -0700 Subject: [PATCH] Change cover hash to id --- streamrip/downloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/streamrip/downloader.py b/streamrip/downloader.py index a507a89..80f39c1 100644 --- a/streamrip/downloader.py +++ b/streamrip/downloader.py @@ -251,7 +251,7 @@ class Track: assert hasattr(self, "cover_url"), "must pass cover_url parameter" - self.cover_path = os.path.join(self.folder, f"cover{hash(self.cover_url)}.jpg") + self.cover_path = os.path.join(self.folder, f"cover{hash(self.id)}.jpg") logger.debug(f"Downloading cover from {self.cover_url}") if not os.path.exists(self.cover_path): tqdm_download(self.cover_url, self.cover_path)