From 9b48613db436b1d2e419b31e7526d9a241aa63bb Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Tue, 19 Jan 2021 12:12:44 -0600 Subject: [PATCH] Fixed VK audios again --- src/presenters/player.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/presenters/player.py b/src/presenters/player.py index 8b8b233..6a19b99 100644 --- a/src/presenters/player.py +++ b/src/presenters/player.py @@ -93,9 +93,7 @@ class audioPlayer(object): # Make sure that there are no other sounds trying to be played. if self.is_working == False: self.is_working = True - # Let's encode the URL as bytes if on Python 3 url_ = utils.transform_audio_url(object["url"]) - url_ = bytes(url_, "utf-8") try: self.stream = URLStream(url=url_) except: @@ -115,7 +113,6 @@ class audioPlayer(object): return self.stop_message() output.speak(_("Playing...")) url_ = utils.transform_audio_url(message_url) - url_ = bytes(url_, "utf-8") try: self.message = URLStream(url=url_) except: