From 8aec50ff8c324ef2587177caa9825ba79a36665d Mon Sep 17 00:00:00 2001 From: Pedro Silva Date: Mon, 14 Apr 2014 15:39:36 +0200 Subject: [PATCH] call truncate, not convert, when truncating --- beetsplug/echonest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/echonest.py b/beetsplug/echonest.py index 481ba26fd..773e97eb5 100644 --- a/beetsplug/echonest.py +++ b/beetsplug/echonest.py @@ -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