diff --git a/src/controller/player.py b/src/controller/player.py index 74ecd68..e088427 100644 --- a/src/controller/player.py +++ b/src/controller/player.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +import output import sound_lib from sound_lib.output import Output from sound_lib.stream import URLStream diff --git a/src/controller/posts.py b/src/controller/posts.py index 267b781..d0d4791 100644 --- a/src/controller/posts.py +++ b/src/controller/posts.py @@ -291,7 +291,7 @@ class audio(postController): def play(self, *args, **kwargs): post = self.post[self.dialog.get_audio()] - pub.sendMessage("play-audio", audio_object=post["url"]) + pub.sendMessage("play-audio", audio_object=post) def load_audios(self): for i in self.post: