From 3112a18463eef4e946c95feb81f9be3f99b04cc5 Mon Sep 17 00:00:00 2001 From: Johnny Robeson Date: Tue, 14 Jun 2016 00:51:12 -0400 Subject: [PATCH] treat ctypes .value as bytes in thumbnails plugin --- beetsplug/thumbnails.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/thumbnails.py b/beetsplug/thumbnails.py index 0e7fbc6e0..d6d4ff356 100644 --- a/beetsplug/thumbnails.py +++ b/beetsplug/thumbnails.py @@ -232,7 +232,7 @@ def copy_c_string(c_string): # work. A more surefire way would be to allocate a ctypes buffer and copy # the data with `memcpy` or somesuch. s = ctypes.cast(c_string, ctypes.c_char_p).value - return '' + s + return b'' + s class GioURI(URIGetter):