Skip to content

Commit 5130e68

Browse files
committed
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.
1 parent becb073 commit 5130e68

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

beetsplug/convert.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ def convert_item(
355355
item, original, converted = None, None, None
356356
while True:
357357
item = yield (item, original, converted)
358+
item.format = fmt.upper()
358359
dest = item.destination(basedir=dest_dir, path_formats=path_formats)
359360

360361
# Ensure that desired item is readable before processing it. Needed

docs/changelog.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ Bug fixes:
3030

3131
- |BeetsPlugin|: load the last plugin class defined in the plugin namespace.
3232
:bug:`6093`
33+
- Fixed convert plugin not taking into account the new format when determining the target path.
34+
:bug:`1360`
3335

3436
For packagers:
3537

0 commit comments

Comments
 (0)