Skip to content

Commit

Permalink
fix: Pack.all returning duplicate files in overlays (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
misode authored Jan 21, 2025
1 parent 28a4f2f commit 9223640
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions beet/library/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down

0 comments on commit 9223640

Please # to comment.