Skip to content

Commit

Permalink
v2.0.3
Browse files Browse the repository at this point in the history
Former-commit-id: 2b51a5f
Former-commit-id: 9381ae5493623b9fea2c682f283281927e014afa
  • Loading branch information
NicholasDawson committed Aug 10, 2021
1 parent e899b37 commit 0068189
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions gparch.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"""

VERSION = "2.0.2"
VERSION = "2.0.3"

# Define Scopes for Application
SCOPES = [
Expand Down Expand Up @@ -375,12 +375,16 @@ def download_single_album(self, album, shared=False):
self.insert_album(album["id"], album_path, album["title"], shared)

processed_items = self.process_media_items(album_items, album_path, album["id"])

self.download(
processed_items,
f"Downloading {'Shared ' if shared else ''}Album: \"{album['title']}\"",
self.thread_count,
)

if processed_items:
self.download(
processed_items,
f"Downloading {'Shared ' if shared else ''}Album: \"{album['title']}\"",
self.thread_count,
)
else:
print(f"Downloading {'Shared ' if shared else ''}Album: \"{album['title']}\"")
print("Everything already downloaded.")

def list_media_items(self):
num = 0
Expand Down

0 comments on commit 0068189

Please sign in to comment.