diff --git a/beetsplug/replace.py b/beetsplug/replace.py index f7a091783..ea303437b 100644 --- a/beetsplug/replace.py +++ b/beetsplug/replace.py @@ -129,6 +129,7 @@ class ReplacePlugin(BeetsPlugin): # Update the path to point to the new file. song.path = str(dest).encode() + song.store() # Write the metadata in the database to the song file's tags. try: @@ -136,7 +137,4 @@ class ReplacePlugin(BeetsPlugin): except FileOperationError as e: raise ui.UserError(f"Error writing metadata to file: {e}") - # Commit the new path to the database. - song.store() - ui.print_("Replacement successful.")