Fixed a bug in the play function in the audio displayer

This commit is contained in:
Manuel Cortez 2016-03-26 12:02:19 -06:00
parent 6a6db9e796
commit 40185d8a5b
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import output
import sound_lib import sound_lib
from sound_lib.output import Output from sound_lib.output import Output
from sound_lib.stream import URLStream from sound_lib.stream import URLStream

View File

@ -291,7 +291,7 @@ class audio(postController):
def play(self, *args, **kwargs): def play(self, *args, **kwargs):
post = self.post[self.dialog.get_audio()] 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): def load_audios(self):
for i in self.post: for i in self.post: