From 7e132693b86515fe1f4a26c6ce8267f7de3ca2db Mon Sep 17 00:00:00 2001 From: Misode Date: Wed, 4 Dec 2024 19:05:29 +0100 Subject: [PATCH] Fix Pack.all returning duplicate files in overlays --- 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 32a34958..18f461af 100644 --- a/beet/library/base.py +++ b/beet/library/base.py @@ -1250,12 +1250,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]: