From d411a83cbb4321cb098b25e72e6707364f0ed2f8 Mon Sep 17 00:00:00 2001 From: Ognyan Moore Date: Fri, 17 Oct 2025 22:19:44 +0300 Subject: [PATCH] Have convert use the new format when deciding path By overriding the format attribute of the item, beets comes up with a destination path that the user expects. --- beetsplug/convert.py | 1 + docs/changelog.rst | 2 ++ 2 files changed, 3 insertions(+) diff --git a/beetsplug/convert.py b/beetsplug/convert.py index e72f8c75a9..770c583266 100644 --- a/beetsplug/convert.py +++ b/beetsplug/convert.py @@ -355,6 +355,7 @@ def convert_item( item, original, converted = None, None, None while True: item = yield (item, original, converted) + item.format = fmt.upper() dest = item.destination(basedir=dest_dir, path_formats=path_formats) # Ensure that desired item is readable before processing it. Needed diff --git a/docs/changelog.rst b/docs/changelog.rst index 9a8fc539b2..58871c24f4 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -30,6 +30,8 @@ Bug fixes: - |BeetsPlugin|: load the last plugin class defined in the plugin namespace. :bug:`6093` +- Fixed convert plugin not taking into account the new format when determining + the target path. :bug:`1360` For packagers: