Skip to content

Commit

Permalink
Use album_title field as title.
Browse files Browse the repository at this point in the history
Not sure if Bandcamp changed their API or what, but my downloads do not
have a "title" field in them, causing the tool to loop endlessly through
all purchases and not download anything; this change fixes said problem
for me, but I saw that the response also includes keys such as
"item_title", which might be a more robust choice.
  • Loading branch information
olepbr committed Oct 26, 2023
1 parent e217a7a commit c7f471e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bandcampsync/bandcamp.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def load_purchases(self):
log.error(f'Failed to locate band name in item metadata, skipping item...')
continue
try:
title = item_data['title']
title = item_data['album_title']
except KeyError:
log.error(f'Failed to locate title in item metadata (possibly a subscription?) for "{band_name}", skipping item...')
continue
Expand Down

0 comments on commit c7f471e

Please sign in to comment.