From 81569cdaaadd5659f7787299f0de4b676eb2b38d Mon Sep 17 00:00:00 2001 From: elpatron68 Date: Sat, 27 Jul 2019 22:37:47 +0200 Subject: [PATCH] Message as html table --- mumbleBot.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/mumbleBot.py b/mumbleBot.py index b32e5d6..a6dc766 100644 --- a/mumbleBot.py +++ b/mumbleBot.py @@ -397,13 +397,10 @@ class MumbleBot: codec = rstation[0]['codec'] bitrate = rstation[0]['bitrate'] genre = rstation[0]['tags'] - imageurl = rstation[0]['favicon'] homepage = rstation[0]['homepage'] - logging.info(f'hp: {homepage}') - logging.info(f'img: {imageurl}') - msg = f'Start playing radio station: {stationname} ({codec}/{bitrate} kbit, Country: {country}, Genre: {genre})' - if homepage and imageurl: - msg += f'' + msg = f'Start playing radio station:' + msg += '' + \ + f'
IDStation NameGenreCodec/BitrateCountryHomepage
{parameter}{stationname}{genre}{codec}, {bitrate}{country}{homepage}
' logging.debug(f'Play radio station {stationname}') self.send_msg(msg, text) url = radiobrowser.geturl_byid(parameter)