mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-24 03:57:14 -04:00
Skip cover if already downloaded #72
This commit is contained in:
parent
721533195f
commit
f134c9b9fd
1 changed files with 5 additions and 1 deletions
|
@ -157,7 +157,11 @@ class Album(Tracklist):
|
|||
self.cover_obj = None
|
||||
|
||||
# Download the booklet if applicable
|
||||
if self.get("booklets") and kwargs.get("download_booklets", True):
|
||||
if (
|
||||
self.get("booklets")
|
||||
and kwargs.get("download_booklets", True)
|
||||
and not any(f.endswith(".pdf") for f in os.listdir(self.folder))
|
||||
):
|
||||
click.secho("\nDownloading booklets", fg="blue")
|
||||
for item in self.booklets:
|
||||
Booklet(item).download(parent_folder=self.folder)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue