call truncate, not convert, when truncating

This commit is contained in:
Pedro Silva 2014-04-14 15:39:36 +02:00
parent cf2f78ef55
commit 8aec50ff8c

View file

@ -360,7 +360,7 @@ class EchonestMetadataPlugin(plugins.BeetsPlugin):
if os.stat(item.path).st_size > UPLOAD_MAX_SIZE:
if config['echonest']['truncate']:
source = self.convert(item)
source = self.truncate(item)
if not source:
log.debug(u'echonest: failed to truncate file')
return