Fixed a bug in the play function in the audio displayer
This commit is contained in:
@@ -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
|
||||||
|
@@ -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:
|
||||||
|
Reference in New Issue
Block a user