Add table header line

This commit is contained in:
elpatron68 2019-07-27 22:43:24 +02:00
parent 422200e2bd
commit fa1ec8a52e

View File

@ -399,7 +399,7 @@ class MumbleBot:
genre = rstation[0]['tags'] genre = rstation[0]['tags']
homepage = rstation[0]['homepage'] homepage = rstation[0]['homepage']
msg = f'Start playing radio station:' msg = f'Start playing radio station:'
msg += '<table><tr><td>ID</td><td>Station Name</td><td>Genre</td><td>Codec/Bitrate</td><td>Country</td><td>Homepage</td></tr>' + \ msg += '<table><tr><th>ID</th><th>Station Name</th><th>Genre</th><th>Codec/Bitrate</th><th>Country</th><th>Homepage</th></tr>' + \
f'<tr><td>{parameter}</td><td>{stationname}</td><td>{genre}</td><td>{codec}/{bitrate}</td><td>{country}</td><td>{homepage}</td></tr></table>' f'<tr><td>{parameter}</td><td>{stationname}</td><td>{genre}</td><td>{codec}/{bitrate}</td><td>{country}</td><td>{homepage}</td></tr></table>'
logging.debug(f'Play radio station {stationname}') logging.debug(f'Play radio station {stationname}')
self.send_msg(msg, text) self.send_msg(msg, text)