write() can only use buffers of type strings or bytearrays, not buffers of unicode type
This commit is contained in:
parent
119667789d
commit
db7984431b
|
@ -99,7 +99,7 @@ class PeertubeAddon():
|
||||||
# Save magnet link temporarily.
|
# Save magnet link temporarily.
|
||||||
tmp_f = xbmc.translatePath('special://temp') + '/plugin.video.peertube/' + video['uuid']
|
tmp_f = xbmc.translatePath('special://temp') + '/plugin.video.peertube/' + video['uuid']
|
||||||
f = xbmcvfs.File(tmp_f, 'w')
|
f = xbmcvfs.File(tmp_f, 'w')
|
||||||
f.write(magnet)
|
f.write(bytearray(magnet, 'utf8'))
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
# Add our item to the listing as a 3-element tuple.
|
# Add our item to the listing as a 3-element tuple.
|
||||||
|
|
Loading…
Reference in New Issue