From 9223640c34a282dd27c9d8f6eb6e173173ea834d Mon Sep 17 00:00:00 2001 From: Misode Date: Tue, 21 Jan 2025 21:17:37 +0100 Subject: [PATCH] fix: Pack.all returning duplicate files in overlays (#453) --- beet/library/base.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/beet/library/base.py b/beet/library/base.py index 05aec8ee..a39ac383 100644 --- a/beet/library/base.py +++ b/beet/library/base.py @@ -1248,12 +1248,12 @@ def all( proxy = self[file_type] for path in proxy.match(*match or ["*"]): yield path, proxy[path] - if self.overlay_parent is None: - for overlay in self.overlays.values(): - if extend: - yield from overlay.all(*match, extend=extend) - else: - yield from overlay.all(*match) + if self.overlay_parent is None: + for overlay in self.overlays.values(): + if extend: + yield from overlay.all(*match, extend=extend) + else: + yield from overlay.all(*match) @property def supported_formats(self) -> Optional[SupportedFormats]: