mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-03-14 09:28:03 -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:
|
elif stream != None:
|
||||||
self.stream=stream
|
self.stream=stream
|
||||||
if self.prepared == True:
|
if self.prepared == True:
|
||||||
self.stream = SoundlibURLStream(url=self.url)
|
self.stream = SoundlibURLStream(url=bytes(self.url,'utf-8'))
|
||||||
if hasattr(self,'stream'):
|
if hasattr(self,'stream'):
|
||||||
self.stream.volume = float(volume)
|
self.stream.volume = float(volume)
|
||||||
self.stream.play()
|
self.stream.play()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user