Skip to content

Commit

Permalink
Ignore merch listings
Browse files Browse the repository at this point in the history
  • Loading branch information
snejus committed Jan 18, 2021
1 parent 9b0c066 commit 41310d7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# [0.5.2] 2021-01-18

### Fixed
- On Bandcamp merch is listed in the same list together with media - this is now
taken into account and merch is ignored. Previously, some albums would fail to
be returned because of this.


# [0.5.1] 2021-01-18

### Fixed
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,5 @@ release is found when importing you can select `enter Id` and paste the Bandcamp

* \* are likely to be inaccurate, since Bandcamp does not provide this data,
therefore they depend on artists providing some clues in the descriptions of
their releases.
their releases. This is only relevant if you have `per_disc_numbering` set to
`True` in the global beets configuration.
5 changes: 4 additions & 1 deletion beetsplug/bandcamp/_metaguru.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,10 @@ def album(self, include_all: bool) -> AlbumInfo:
medias: JSONDict = {}
try:
for _format in self.meta["albumRelease"]:
media = _format["musicReleaseFormat"]
try:
media = _format["musicReleaseFormat"]
except KeyError:
continue
medias[MEDIA_MAP[media]] = _format
except (KeyError, AttributeError):
return None
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "beetcamp"
version = "0.5.1"
version = "0.5.2"
description = "Bandcamp autotagger source for beets (http://beets.io)."
authors = ["Šarūnas Nejus <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 41310d7

Please sign in to comment.