Skip to content

Commit 1ba0560

Browse files
committed
chore: Beets 2.7.1 compatibility
1 parent 4cc5103 commit 1ba0560

5 files changed

Lines changed: 46 additions & 39 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## v1.4.0 (2026-03-22)
4+
5+
### Breaking Changes
6+
7+
- Require Beets `>=2.7.1,<2.8`
8+
9+
### Fix
10+
11+
- Update Confuse to v2.2.0 to match the version Beets uses. Fixes #84
12+
313
## v1.3.1 (2026-02-08)
414

515
### Fix

beetsplug/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"us": "https://api.audible.com/1.0/catalog/products",
2121
"uk": "https://api.audible.co.uk/1.0/catalog/products",
2222
}
23-
AUDIBLE_REGIONS = set(AUDIBLE_ENDPOINTS.keys())
23+
AUDIBLE_REGIONS = tuple(AUDIBLE_ENDPOINTS)
2424
AUDIBLE_REGIONS_SUFFIXES = {k: tldextract.extract(v).suffix for k, v in AUDIBLE_ENDPOINTS.items()}
2525
AUDIBLE_SUFFIXES_REGIONS = {v: k for k, v in AUDIBLE_REGIONS_SUFFIXES.items()}
2626
AUDNEX_ENDPOINT = "https://api.audnex.us"

beetsplug/audible.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,14 +257,14 @@ def get_album_from_yaml_metadata(self, data, items):
257257
artists = authors_and_narrators if self.config["include_narrator_in_artists"] else authors
258258

259259
description = data["description"]
260-
genres = "/".join(data["genres"])
260+
genres = data["genres"]
261261

262262
common_attributes = {
263263
"artist_id": None,
264264
"album_sort": album_sort,
265265
"composer": narrators,
266266
"grouping": content_group_description,
267-
"genre": genres,
267+
"genres": genres,
268268
"series_name": series_name,
269269
"series_position": series_position,
270270
"comments": description,
@@ -415,7 +415,7 @@ def get_album_info(self, asin, region):
415415

416416
description = book.summary_markdown
417417
cover_url = book.image_url
418-
genres = "/".join([g.name for g in book.genres])
418+
genres = [g.name for g in book.genres]
419419

420420
album_url = get_audible_album_url(asin, book.region)
421421
region = book.region
@@ -426,7 +426,7 @@ def get_album_info(self, asin, region):
426426
"album_sort": album_sort,
427427
"composer": narrators,
428428
"grouping": content_group_description,
429-
"genre": genres,
429+
"genres": genres,
430430
"series_name": series_name,
431431
"series_position": series_position,
432432
"comments": description,

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "beets-audible"
3-
version = "1.3.1"
3+
version = "1.4.0"
44
description = "Beets plugin for audiobook management"
55
authors = [
66
{ name = "Dickson Tan", email = "dickson.tan.2013@gmail.com" }
@@ -23,8 +23,7 @@ readme = "readme.md"
2323
requires-python = ">=3.10"
2424

2525
dependencies = [
26-
"beets >=2.6.1,<2.7",
27-
"confuse<2.2", # https://github.com/Neurrone/beets-audible/issues/84
26+
"beets >=2.7.1,<2.8",
2827
"mediafile<0.14.0", # https://github.com/Neurrone/beets-audible/issues/83
2928
"markdownify >=1,<2",
3029
"natsort >=8,<9",
@@ -35,7 +34,7 @@ dependencies = [
3534
dev = [
3635
"pytest==9.0.2",
3736
"responses>=0.25.3,<0.26", # used by beets tests
38-
"ruff==0.15.0"
37+
"ruff==0.15.7"
3938
]
4039

4140
[build-system]

uv.lock

Lines changed: 28 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)