Skip to content

Commit

Permalink
Skip cover if already downloaded #72
Browse files Browse the repository at this point in the history
  • Loading branch information
nathom committed May 14, 2021
1 parent 7215331 commit f134c9b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion streamrip/tracklists.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,11 @@ def _prepare_download(self, **kwargs):
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)
Expand Down

0 comments on commit f134c9b

Please sign in to comment.