1.7 version with bugfix of amperasand in stream names
This commit is contained in:
parent
9ea2236711
commit
6904b11f74
2 changed files with 6 additions and 8 deletions
|
@ -1,29 +1,26 @@
|
|||
# fleast
|
||||
Least-favourite twitch streamers here
|
||||
|
||||
|
||||
## Change Log
|
||||
### 1.7
|
||||
- Fixed bug with displaying special symbols in stream name
|
||||
### 1.6
|
||||
- Fixed bug, when IRL query could contain several copies of one stream
|
||||
|
||||
### 1.5
|
||||
- IRL section is back with IRL query
|
||||
- Fixed bug when games with `&` symbol could not found correctly.
|
||||
|
||||
### 1.4
|
||||
- Polished internal code and now cherrypy server configuration
|
||||
is independent from nginx reverse proxy
|
||||
|
||||
### 1.3
|
||||
- Fixed bug when VOD-streams appear in list of live streams
|
||||
|
||||
### 1.2
|
||||
- Fixed some typos in text
|
||||
- Fixed bug with chinese language streams
|
||||
- Fixed bug when 0 streams are found if game name contains whitespaces in the end
|
||||
- Fixed bug with stream list if stream name contains '<' and '>' symbols
|
||||
|
||||
### 1.1
|
||||
- Form data now saved between querries
|
||||
|
||||
### 1.0
|
||||
- Initial release
|
||||
|
|
5
main.py
5
main.py
|
@ -5,7 +5,7 @@ import cherrypy
|
|||
from cherrypy.process.plugins import Daemonizer
|
||||
from twitch import TwitchClient
|
||||
|
||||
ver = '1.6'
|
||||
ver = '1.7'
|
||||
|
||||
|
||||
class FleastServer(object):
|
||||
|
@ -48,7 +48,8 @@ class FleastServer(object):
|
|||
:param text: string with html source code
|
||||
:return: filtered string with html source code
|
||||
"""
|
||||
repl = {'"': '"', '&': '&', '<': '<', '>': '>'}
|
||||
repl = {'"': '"', '<': '<', '>': '>'}
|
||||
text.replace('&', '&')
|
||||
for i in repl:
|
||||
text = text.replace(i, repl[i])
|
||||
return text
|
||||
|
|
Loading…
Reference in a new issue