From 40185d8a5b647121b53aa75042d843438629a5ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Sat, 26 Mar 2016 12:02:19 -0600 Subject: [PATCH] Fixed a bug in the play function in the audio displayer --- src/controller/player.py | 1 + src/controller/posts.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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: