mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-03-13 17:13:21 -06:00
URLs need to be handled as bytes for sound_lib.
This commit is contained in:
parent
bde1d1fdf0
commit
d2d7e1c077
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user