mirror of
https://github.com/beetbox/beets.git
synced 2026-02-08 08:25:23 +01:00
Merge 2dfe339edc into cdfb813910
This commit is contained in:
commit
c4689d8cb2
2 changed files with 7 additions and 1 deletions
|
|
@ -378,8 +378,12 @@ class ConvertPlugin(BeetsPlugin):
|
|||
item, original, converted = None, None, None
|
||||
while True:
|
||||
item = yield (item, original, converted)
|
||||
# item format should represent the converted format, not the original
|
||||
original_format, new_format = item.format, fmt.upper()
|
||||
item.format = new_format
|
||||
dest = item.destination(basedir=dest_dir, path_formats=path_formats)
|
||||
|
||||
# need to restore this attribute for checks further along
|
||||
item.format = original_format
|
||||
# Ensure that desired item is readable before processing it. Needed
|
||||
# to avoid any side-effect of the conversion (linking, keep_new,
|
||||
# refresh) if we already know that it will fail.
|
||||
|
|
|
|||
|
|
@ -190,6 +190,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:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue