remove ext encode from fetchart (py3 fix for #2068)

This commit is contained in:
Johnny Robeson 2016-06-23 02:29:49 -04:00
parent c7a4d261e2
commit ea02269dee

View file

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