diff --git a/beetsplug/lastgenre/__init__.py b/beetsplug/lastgenre/__init__.py index bebe15047..cfecbf0f8 100644 --- a/beetsplug/lastgenre/__init__.py +++ b/beetsplug/lastgenre/__init__.py @@ -578,6 +578,8 @@ class LastGenrePlugin(plugins.BeetsPlugin): if not pretend: item.genre = item_genre item.store() + if write and not pretend: + item.try_write() lastgenre_cmd.func = lastgenre_func return [lastgenre_cmd] diff --git a/docs/plugins/lastgenre.rst b/docs/plugins/lastgenre.rst index f4f92f7d1..a33a79230 100644 --- a/docs/plugins/lastgenre.rst +++ b/docs/plugins/lastgenre.rst @@ -124,7 +124,7 @@ tags** and will only **fetch new genres for empty tags**. When ``force`` is ``yes`` the setting of the ``whitelist`` option (as documented in Usage_) applies to any existing or newly fetched genres. -The follwing configurations are possible: +The following configurations are possible: **Setup 1** (default) @@ -213,9 +213,9 @@ fetch genres for albums or items matching a certain query. By default, ``beet lastgenre`` matches albums. To match individual tracks or singletons, use the ``-A`` switch: ``beet lastgenre -A [QUERY]``. -To preview changes without modifying your library, use the ``-p`` -(``--pretend``) flag. This shows which genres would be set but does not write -or store any changes. +- To preview the changes that would be made without applying them, use the + ``-p`` (``--pretend``) flag. This shows which genres would be set but does + not write or store any changes. To disable automatic genre fetching on import, set the ``auto`` config option to false.