mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-28 14:04:49 -04:00
Keep playlist track covers in temp dir
This commit is contained in:
parent
395ca2ae60
commit
e28e8b31ea
1 changed files with 10 additions and 11 deletions
|
@ -185,8 +185,7 @@ class Track:
|
|||
|
||||
os.makedirs(self.folder, exist_ok=True)
|
||||
|
||||
if isinstance(database, MusicDB):
|
||||
if self.id in database:
|
||||
if isinstance(database, MusicDB) and self.id in database:
|
||||
self.downloaded = True
|
||||
self.tagged = True
|
||||
self.path = self.final_path
|
||||
|
@ -328,7 +327,7 @@ class Track:
|
|||
|
||||
assert hasattr(self, "cover_url"), "must set cover_url attribute"
|
||||
|
||||
self.cover_path = os.path.join(self.folder, f"cover{hash(self.cover_url)}.jpg")
|
||||
self.cover_path = os.path.join(gettempdir(), f"cover{hash(self.cover_url)}.jpg")
|
||||
logger.debug(f"Downloading cover from {self.cover_url}")
|
||||
# click.secho(f"\nDownloading cover art for {self!s}", fg="blue")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue