Files
beets/test
Axel WikströmandClaude Opus 4.5 b5d8ced9d9 Enable duplicate detection for as-is imports
When importing with autotag=no, duplicate detection was skipped entirely
because the import_asis stage called _apply_choice() directly without
first calling _resolve_duplicates(). This meant the duplicate_keys and
duplicate_action config options were ignored for as-is imports.

This was a known limitation documented by a FIXME comment added in
commit 79d1203541 (Sep 2014): "We should also resolve duplicates when
not autotagging." The FIXME was later removed during a comment cleanup
(f145e3b18) but the issue was never addressed.

This commit adds the _resolve_duplicates() call to import_asis, ensuring
duplicate detection works consistently regardless of the autotag setting.
This applies to both album imports and singleton imports.

Test changes:
- Renamed test_no_autotag_keeps_duplicate_album to
  test_no_autotag_removes_duplicate_album to verify the corrected behavior
- Added test_no_autotag_removes_duplicate_singleton to verify singleton
  duplicate detection also works with autotag=no

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-04 14:26:13 +00:00
..
2026-02-27 18:34:26 +00:00
2026-03-03 13:53:12 +00:00
2026-02-27 18:34:26 +00:00
2026-02-27 18:34:26 +00:00
2026-01-13 20:55:40 +00:00
2021-08-26 20:59:48 +10:00
2026-01-13 20:55:40 +00:00
2026-03-02 09:24:25 +00:00
2026-02-27 18:36:04 +00:00
2024-09-21 11:57:48 +01:00
2026-01-31 23:42:09 +00:00
2026-02-27 18:34:26 +00:00
2026-02-27 18:34:26 +00:00
2025-05-07 10:41:01 +01:00