From 18e76f08c73445a128c3cc191fbae4bdd32d4b43 Mon Sep 17 00:00:00 2001 From: J0J0 Todos Date: Sat, 4 Nov 2023 00:53:52 +0100 Subject: [PATCH] Prevent album genre inherit only when source:track is configured. --- beetsplug/lastgenre/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/beetsplug/lastgenre/__init__.py b/beetsplug/lastgenre/__init__.py index 9cfd06aa8..ac1e55692 100644 --- a/beetsplug/lastgenre/__init__.py +++ b/beetsplug/lastgenre/__init__.py @@ -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