Skip to content

Commit

Permalink
Fix not actually using the overlay parent pack
Browse files Browse the repository at this point in the history
  • Loading branch information
misode committed Oct 11, 2024
1 parent 4617243 commit f3cf797
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions beet/library/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,14 +585,14 @@ def list_files(
if self.pack:
pack_format = self.pack.pack_format
if self.pack.overlay_parent:
pack_format = self.pack.pack_format
supported_formats = self.pack.supported_formats
if type(supported_formats) is int:
pack_format = supported_formats
elif type(supported_formats) is list[int]:
pack_format = supported_formats[1]
elif type(supported_formats) is FormatsRangeDict:
pack_format = supported_formats["max_inclusive"]
parent = self.pack.overlay_parent
pack_format = parent.pack_format
if type(parent.supported_formats) is int:
pack_format = parent.supported_formats
elif type(parent.supported_formats) is list[int]:
pack_format = parent.supported_formats[1]
elif type(parent.supported_formats) is FormatsRangeDict:
pack_format = parent.supported_formats["max_inclusive"]
scope = get_output_scope(content_type.scope, pack_format)

prefix = "/".join((self.directory, namespace) + scope)
Expand Down

0 comments on commit f3cf797

Please sign in to comment.