Remove homepage from result to keep it shorter

This commit is contained in:
elpatron68
2019-07-28 10:32:51 +02:00
parent 9df4d98d12
commit a68e9b683d

View File

@ -373,7 +373,7 @@ class MumbleBot:
self.send_msg('Searching for stations - this may take some seconds...', text) self.send_msg('Searching for stations - this may take some seconds...', text)
rb_stations = radiobrowser.getstations_byname(parameter) rb_stations = radiobrowser.getstations_byname(parameter)
msg = var.config.get('strings', 'rbqueryresult') + " :" msg = var.config.get('strings', 'rbqueryresult') + " :"
msg += '\n<table><tr><th>!rbplay ID</th><th>Station Name</th><th>Genre</th><th>Codec/Bitrate</th><th>Country</th><th>Homepage</th></tr>' msg += '\n<table><tr><th>!rbplay ID</th><th>Station Name</th><th>Genre</th><th>Codec/Bitrate</th><th>Country</th></tr>'
if not rb_stations: if not rb_stations:
logging.debug('No matches found for rbquery ' + parameter) logging.debug('No matches found for rbquery ' + parameter)
self.send_msg('Radio-Browser found no matches for ' + parameter, text) self.send_msg('Radio-Browser found no matches for ' + parameter, text)
@ -385,8 +385,7 @@ class MumbleBot:
codec = s['codec'] codec = s['codec']
bitrate = s['bitrate'] bitrate = s['bitrate']
genre = s['genre'] genre = s['genre']
homepage = s['homepage'] 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><td>{homepage}/</td></tr>'
msg += '</table>' msg += '</table>'
if len(msg) < 5000: if len(msg) < 5000:
self.send_msg(msg, text) self.send_msg(msg, text)