Fixed bug when game names with & could not be correctly found

This commit is contained in:
Alex Vanin 2018-11-25 14:55:33 +03:00
parent bd73f22c75
commit ad7c489a79

View file

@ -65,7 +65,7 @@ class FleastServer(object):
_opt_langs_=self.set_templ_lang('ru')) _opt_langs_=self.set_templ_lang('ru'))
game = game.rstrip() game = game.rstrip()
cherrypy.log('Getting game:"{}" language:{}'.format(game, lang)) cherrypy.log('Getting game:"{}" language:{}'.format(game, lang))
data = self.client.get_live_streams(game, lang) data = self.client.get_live_streams(game.replace(' ', '%20').replace('&', '%26'), lang)
if data is None: if data is None:
return 'Internal Error<br>Tell me more at ' \ return 'Internal Error<br>Tell me more at ' \