mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 13:07:09 +01:00
convert: Check the correct path when determening whether to skip
Fixes regression from3197795faaand makes tests from56aba87fdcpass. Fixes #970
This commit is contained in:
parent
56aba87fdc
commit
dc3c4883dc
1 changed files with 4 additions and 1 deletions
|
|
@ -151,8 +151,12 @@ def convert_item(dest_dir, keep_new, path_formats, format, pretend=False):
|
|||
if keep_new:
|
||||
original = dest
|
||||
converted = item.path
|
||||
if should_transcode(item, format):
|
||||
converted = replace_ext(converted, ext)
|
||||
else:
|
||||
original = item.path
|
||||
if should_transcode(item, format):
|
||||
dest = replace_ext(dest, ext)
|
||||
converted = dest
|
||||
|
||||
# Ensure that only one thread tries to create directories at a
|
||||
|
|
@ -181,7 +185,6 @@ def convert_item(dest_dir, keep_new, path_formats, format, pretend=False):
|
|||
util.move(item.path, original)
|
||||
|
||||
if should_transcode(item, format):
|
||||
converted = replace_ext(converted, ext)
|
||||
try:
|
||||
encode(command, original, converted, pretend)
|
||||
except subprocess.CalledProcessError:
|
||||
|
|
|
|||
Loading…
Reference in a new issue