mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-31 23:38:24 -04:00
Change cover hash to id
This commit is contained in:
parent
f300eb950c
commit
1f5b0e7217
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue