Skip to content

Commit

Permalink
Prevent album genre inherit only when source:track
Browse files Browse the repository at this point in the history
is configured.
  • Loading branch information
JOJ0 committed Jan 12, 2025
1 parent 3233945 commit 2e2496e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion beetsplug/lastgenre/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,10 @@ def lastgenre_func(lib, opts, args):
album,
src,
)
album.store(inherit=False)
if "track" in self.sources:
album.store(inherit=False)
else:
album.store()

for item in album.items():
# If we're using track-level sources, also look up each
Expand Down

0 comments on commit 2e2496e

Please sign in to comment.