convert: Write tags from library instead of copying them

This commit is contained in:
Jakob Schnitzer 2012-10-17 21:12:31 +02:00
parent b81ac1d6e0
commit 26dfe38bb0

View file

@ -84,9 +84,8 @@ def convert_item(lib, dest_dir):
dest_item = library.Item.from_path(dest)
else:
encode(item.path, dest)
dest_item = library.Item.from_path(item.path)
dest_item.path = dest
dest_item.write()
item.path = dest
item.write()
artpath = lib.get_album(item).artpath
if artpath and conf['embed']: