Fixed VK audios again
This commit is contained in:
parent
a53b333be0
commit
9b48613db4
@ -93,9 +93,7 @@ class audioPlayer(object):
|
|||||||
# Make sure that there are no other sounds trying to be played.
|
# Make sure that there are no other sounds trying to be played.
|
||||||
if self.is_working == False:
|
if self.is_working == False:
|
||||||
self.is_working = True
|
self.is_working = True
|
||||||
# Let's encode the URL as bytes if on Python 3
|
|
||||||
url_ = utils.transform_audio_url(object["url"])
|
url_ = utils.transform_audio_url(object["url"])
|
||||||
url_ = bytes(url_, "utf-8")
|
|
||||||
try:
|
try:
|
||||||
self.stream = URLStream(url=url_)
|
self.stream = URLStream(url=url_)
|
||||||
except:
|
except:
|
||||||
@ -115,7 +113,6 @@ class audioPlayer(object):
|
|||||||
return self.stop_message()
|
return self.stop_message()
|
||||||
output.speak(_("Playing..."))
|
output.speak(_("Playing..."))
|
||||||
url_ = utils.transform_audio_url(message_url)
|
url_ = utils.transform_audio_url(message_url)
|
||||||
url_ = bytes(url_, "utf-8")
|
|
||||||
try:
|
try:
|
||||||
self.message = URLStream(url=url_)
|
self.message = URLStream(url=url_)
|
||||||
except:
|
except:
|
||||||
|
Loading…
Reference in New Issue
Block a user