From c9c37a8f79509eae63411f1a6fe47e458f3198bc Mon Sep 17 00:00:00 2001 From: Johnny Robeson Date: Thu, 7 Jul 2016 03:40:26 -0400 Subject: [PATCH] adding missing b' to command name checks in replaygain --- beetsplug/replaygain.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beetsplug/replaygain.py b/beetsplug/replaygain.py index e25f1a045..cae55f5b5 100644 --- a/beetsplug/replaygain.py +++ b/beetsplug/replaygain.py @@ -308,9 +308,9 @@ class CommandBackend(Backend): def format_supported(self, item): """Checks whether the given item is supported by the selected tool. """ - if 'mp3gain' in self.command and item.format != 'MP3': + if b'mp3gain' in self.command and item.format != 'MP3': return False - elif 'aacgain' in self.command and item.format not in ('MP3', 'AAC'): + elif b'aacgain' in self.command and item.format not in ('MP3', 'AAC'): return False return True