Add support for radio-browser API

This commit is contained in:
elpatron68 2019-07-27 19:03:28 +02:00
parent ae0f11a349
commit ffa727c00f

View File

@ -382,7 +382,7 @@ class MumbleBot:
elif command == var.config.get('command', 'rb_play'): elif command == var.config.get('command', 'rb_play'):
logging.info('Play a station by ID') logging.info('Play a station by ID')
if not parameter: if not parameter:
logging.info('rbplay withou parameter') logging.info('rbplay without parameter')
msg += 'Please enter a station ID from rbquery. Example: !rbplay 96748' msg += 'Please enter a station ID from rbquery. Example: !rbplay 96748'
self.send_msg(msg, text) self.send_msg(msg, text)
else: else:
@ -397,7 +397,8 @@ class MumbleBot:
self.async_download_next() self.async_download_next()
else: else:
logging.info('No playable url found.') logging.info('No playable url found.')
pass msg += "No playable url found for this station, please try another station."
self.send_msg(msg, text)
elif command == var.config.get('command', 'help'): elif command == var.config.get('command', 'help'):
self.send_msg(var.config.get('strings', 'help'), text) self.send_msg(var.config.get('strings', 'help'), text)