From ea02269dee6309f15f017bb721a2c7a05abeee0e Mon Sep 17 00:00:00 2001 From: Johnny Robeson Date: Thu, 23 Jun 2016 02:29:49 -0400 Subject: [PATCH] remove ext encode from fetchart (py3 fix for #2068) --- beetsplug/fetchart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/fetchart.py b/beetsplug/fetchart.py index e10a35270..a2ce1661d 100644 --- a/beetsplug/fetchart.py +++ b/beetsplug/fetchart.py @@ -611,7 +611,7 @@ class FileSystem(LocalArtSource): for fn in os.listdir(syspath(path)): fn = bytestring_path(fn) for ext in IMAGE_EXTENSIONS: - if fn.lower().endswith(b'.' + ext.encode('utf8')) and \ + if fn.lower().endswith(b'.' + ext) and \ os.path.isfile(syspath(os.path.join(path, fn))): images.append(fn)