Skip to content

Commit

Permalink
ignore preorder items, resolves #16
Browse files Browse the repository at this point in the history
  • Loading branch information
meeb committed May 4, 2024
1 parent 08f2e34 commit ae824e0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bandcampsync/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ def do_sync(cookies_path, cookies, dir_path, media_format, temp_dir_root, ign_pa
continue

local_path = local_media.get_path_for_purchase(item)
if local_media.is_locally_downloaded(item, local_path):
if item.is_preorder == True:
log.info(f'Item is a preorder, skipping: "{item.band_name} / {item.item_title}" '
f'(id:{item.item_id})')
continue
elif local_media.is_locally_downloaded(item, local_path):
log.info(f'Already locally downloaded, skipping: "{item.band_name} / {item.item_title}" '
f'(id:{item.item_id})')
continue
Expand Down

0 comments on commit ae824e0

Please sign in to comment.