From 2e5803cfad7c7818b5941bc2b5cad7d63d47cb6e Mon Sep 17 00:00:00 2001 From: Bruno Cauet Date: Fri, 27 Mar 2015 14:00:22 +0100 Subject: [PATCH] =?UTF-8?q?Thumbnails:=20unicode=20=E2=86=92=20bytes=20fil?= =?UTF-8?q?ename?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- beetsplug/thumbnails.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/thumbnails.py b/beetsplug/thumbnails.py index 6ec629118..bcb6a7443 100644 --- a/beetsplug/thumbnails.py +++ b/beetsplug/thumbnails.py @@ -163,7 +163,7 @@ class ThumbnailsPlugin(BeetsPlugin): """ uri = self.get_uri(path) hash = md5(uri).hexdigest() - return "{0}.png".format(hash) + return b"{0}.png".format(hash) def add_tags(self, album, image_path): """Write required metadata to the thumbnail