Prevent album genre inherit only when source:track

is configured.
This commit is contained in:
J0J0 Todos 2023-11-04 00:53:52 +01:00
parent 9ec2a8146f
commit 18e76f08c7

View file

@ -411,7 +411,10 @@ class LastGenrePlugin(plugins.BeetsPlugin):
self._log.info(
"genre for album {0} ({1}): {0.genre}", 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