convert: Pipepline stage yields result

This commit is contained in:
Thomas Scholtes 2014-09-09 23:41:47 +02:00
parent 98ae8cbbc9
commit cfe82e9736

View file

@ -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