Fix wrong placed </table>

This commit is contained in:
elpatron68
2019-07-28 15:37:46 +02:00
parent 58a654199a
commit fc22e5487d

View File

@ -387,8 +387,8 @@ class MumbleBot:
genre = s['genre'] genre = s['genre']
# msg += f'<tr><td>{stationid}</td><td>{stationname}</td><td>{genre}</td><td>{codec}/{bitrate}</td><td>{country}</td></tr>' # msg += f'<tr><td>{stationid}</td><td>{stationname}</td><td>{genre}</td><td>{codec}/{bitrate}</td><td>{country}</td></tr>'
msg += '<tr><td>%s</td><td>%s</td><td>%s</td><td>%s/%s</td><td>%s</td></tr>' % (stationid, stationname, genre, codec, bitrate, country) msg += '<tr><td>%s</td><td>%s</td><td>%s</td><td>%s/%s</td><td>%s</td></tr>' % (stationid, stationname, genre, codec, bitrate, country)
msg += '</table>' msg += '</table>'
# Full message as html table # Full message as html table
if len(msg) <= 5000: if len(msg) <= 5000:
self.send_msg(msg, text) self.send_msg(msg, text)
# Shorten message if message too long (stage I) # Shorten message if message too long (stage I)
@ -401,6 +401,7 @@ class MumbleBot:
stationname = s['stationname'] stationname = s['stationname']
# msg += f'<tr><td>{stationid}</td><td>{stationname}</td>' # msg += f'<tr><td>{stationid}</td><td>{stationname}</td>'
msg += '<tr><td>%s</td><td>%s</td>' % (stationid, stationname) msg += '<tr><td>%s</td><td>%s</td>' % (stationid, stationname)
msg += '</table>'
if len(msg) <= 5000: if len(msg) <= 5000:
self.send_msg(msg, text) self.send_msg(msg, text)
# Shorten message if message too long (stage II) # Shorten message if message too long (stage II)