check dirname result against b'' in fetchart

This commit is contained in:
Johnny Robeson 2016-06-10 02:52:58 -04:00
parent 5e62b39f75
commit 69c9fb8b07

View file

@ -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