From 53efa0378587c90c9be222a7d8d8acebd94aaf82 Mon Sep 17 00:00:00 2001 From: Will Burden <25230174+willburden@users.noreply.github.com> Date: Sat, 13 Dec 2025 14:53:11 +0000 Subject: [PATCH] Save new path before writing metadata --- beetsplug/replace.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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.")