From db7984431b6a6297735c09ac937abed49c4e3940 Mon Sep 17 00:00:00 2001 From: Famille Bollu Date: Thu, 26 Jul 2018 21:54:59 +0200 Subject: [PATCH] write() can only use buffers of type strings or bytearrays, not buffers of unicode type --- peertube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peertube.py b/peertube.py index 81760cd..8c18407 100755 --- a/peertube.py +++ b/peertube.py @@ -99,7 +99,7 @@ class PeertubeAddon(): # Save magnet link temporarily. tmp_f = xbmc.translatePath('special://temp') + '/plugin.video.peertube/' + video['uuid'] f = xbmcvfs.File(tmp_f, 'w') - f.write(magnet) + f.write(bytearray(magnet, 'utf8')) f.close() # Add our item to the listing as a 3-element tuple.