mirror of
https://github.com/beetbox/beets.git
synced 2026-01-25 01:22:14 +01:00
convert: Pipepline stage yields result
This commit is contained in:
parent
98ae8cbbc9
commit
cfe82e9736
1 changed files with 2 additions and 1 deletions
|
|
@ -135,8 +135,9 @@ def should_transcode(item, format):
|
|||
|
||||
def convert_item(dest_dir, keep_new, path_formats, format, pretend=False):
|
||||
command, ext = get_format(format)
|
||||
item, original, converted = None, None, None
|
||||
while True:
|
||||
item = yield
|
||||
item = yield (item, original, converted)
|
||||
dest = item.destination(basedir=dest_dir, path_formats=path_formats)
|
||||
|
||||
# When keeping the new file in the library, we first move the
|
||||
|
|
|
|||
Loading…
Reference in a new issue