From 6fcd88bc31ff9e7a88d1d5e17abe5b30fa171d1d Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Fri, 10 Apr 2015 08:53:54 -0700 Subject: [PATCH] More precise comment for #1398 --- beetsplug/replaygain.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/beetsplug/replaygain.py b/beetsplug/replaygain.py index b83f29047..150605123 100644 --- a/beetsplug/replaygain.py +++ b/beetsplug/replaygain.py @@ -190,13 +190,16 @@ class Bs1770gainBackend(Backend): cmd = [self.command] cmd = cmd + [self.method] cmd = cmd + [b'-it'] - # workaround for windows MAX_PATH prefix, will get problems - # when path is too long on windows + try: + # Workaround for Windows: the underlying tool fails on paths + # with the \\?\ prefix, so we don't use it here. This + # prevents the backend from working with long paths. 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) results = self.parse_tool_output(output, len(items) + is_album)