Index 0
This commit is contained in:
parent
a759191b9b
commit
4e1e59951e
@ -26,5 +26,5 @@ def getstationname_byid(id):
|
||||
|
||||
if __name__ == "__main__":
|
||||
r = getstations_byname('r.sh')
|
||||
name = getstationname_byid(96748)
|
||||
stationinfo = getstationname_byid(96748)
|
||||
pass
|
@ -392,10 +392,10 @@ class MumbleBot:
|
||||
else:
|
||||
logging.debug('Retreiving url for station ID ' + parameter)
|
||||
rstation = radiobrowser.getstationname_byid(parameter)
|
||||
stationname = rstation['name']
|
||||
country = rstation['country']
|
||||
codec = rstation['codec']
|
||||
bitrate = rstation['bitrate']
|
||||
stationname = rstation[0]['name']
|
||||
country = rstation[0]['country']
|
||||
codec = rstation[0]['codec']
|
||||
bitrate = rstation[0]['bitrate']
|
||||
msg = f'Start playing radio station: {stationname} from {country} ({codec}/{bitrate} kbit)'
|
||||
logging.info(' Play radio station ' + msg)
|
||||
self.send_msg(msg, text)
|
||||
|
Loading…
x
Reference in New Issue
Block a user