From 71283403858f2e1b7d6fe948ff1b4e82356b28e8 Mon Sep 17 00:00:00 2001 From: jmwatte Date: Fri, 10 Apr 2015 09:26:56 +0200 Subject: [PATCH] fix no-PREFIX for long window-paths --- beetsplug/replaygain.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/beetsplug/replaygain.py b/beetsplug/replaygain.py index 5d982a35d..b83f29047 100644 --- a/beetsplug/replaygain.py +++ b/beetsplug/replaygain.py @@ -193,10 +193,8 @@ class Bs1770gainBackend(Backend): # workaround for windows MAX_PATH prefix, will get problems # when path is too long on windows try: - output = call(cmd + [syspath(i.path) for i in items]) - if not output: - output = call(cmd + - [syspath(i.path, prefix=False) for i in items]) + output = call(cmd + + [syspath(i.path, prefix=False) for i in items]) except: self._log.debug(u'bsgain1770 failed') self._log.debug(u'analysis finished:{0}', output)