Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions beetsplug/audible.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def __init__(self):
{
"fetch_art": True,
"match_chapters": True,
"keep_org_tracks": False,
"source_weight": 0.0,
"write_description_file": True,
"write_reader_file": True,
Expand Down Expand Up @@ -193,6 +194,10 @@ def candidates(self, items, artist, album, va_likely, extra_tags=None):
# is technically possible (based on the API) but unsure how often it happens
self._log.warn(f"Chapter data for {a.album} could be inaccurate.")

if self.config["keep_org_tracks"]:
# If the user has set the keep_org_tracks option, don't modify the tracks
return albums

if is_likely_match and (not is_chapterized or not self.config["match_chapters"]):
self._log.debug(
f"Attempting to match book: album {album} with {len(items)} files"
Expand Down