URLs need to be handled as bytes for sound_lib.

This commit is contained in:
Bill Dengler 2017-06-17 01:42:00 +00:00
parent bde1d1fdf0
commit d2d7e1c077

View File

@ -146,7 +146,7 @@ class URLStream(object):
elif stream != None:
self.stream=stream
if self.prepared == True:
self.stream = SoundlibURLStream(url=self.url)
self.stream = SoundlibURLStream(url=bytes(self.url,'utf-8'))
if hasattr(self,'stream'):
self.stream.volume = float(volume)
self.stream.play()