From c87dbb1bd6afcb2831c3f0fc3243e946202194c6 Mon Sep 17 00:00:00 2001 From: elpatron68 Date: Sat, 27 Jul 2019 21:51:28 +0200 Subject: [PATCH] Now playing --- mumbleBot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mumbleBot.py b/mumbleBot.py index 9a9182b..0787c3f 100644 --- a/mumbleBot.py +++ b/mumbleBot.py @@ -391,6 +391,9 @@ class MumbleBot: self.send_msg(msg, text) else: logging.debug('Retreiving url for station ID ' + parameter) + msg = 'Start playing radio station: ' + radiobrowser.getstationname_byid(parameter) + logging.info(' Play radio station ' + msg) + self.send_msg(msg, text) url = radiobrowser.geturl_byid(parameter) if url != "-1": logging.info('Found url: ' + url) @@ -399,7 +402,6 @@ class MumbleBot: 'user': user} var.playlist.append(music) self.async_download_next() - self.send_msg('Now playing radio station: ' + radiobrowser.getstationname_byid(parameter), text) else: logging.info('No playable url found.') msg += "No playable url found for this station, please try another station."