From 69c9fb8b0741bec2adc25c5f1b51ca55adb8e89f Mon Sep 17 00:00:00 2001 From: Johnny Robeson Date: Fri, 10 Jun 2016 02:52:58 -0400 Subject: [PATCH] check dirname result against b'' in fetchart --- beetsplug/embedart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/embedart.py b/beetsplug/embedart.py index 71b05f370..948da6291 100644 --- a/beetsplug/embedart.py +++ b/beetsplug/embedart.py @@ -107,7 +107,7 @@ class EmbedCoverArtPlugin(BeetsPlugin): else: filename = bytestring_path(opts.filename or config['art_filename'].get()) - if os.path.dirname(filename) != '': + if os.path.dirname(filename) != b'': self._log.error( u"Only specify a name rather than a path for -n") return