summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2010-05-19 19:24:10 +0200
committerMatthias Schiffer <matthias@gamezock.de>2010-05-19 19:24:10 +0200
commitf20552c81c88af542acf50168b6ad5699a2642ed (patch)
tree25caf40270e63ae98e5375b2cf424c4f659c2371 /modules
parent99298d39815946c5209b401191af779c7ada0f6e (diff)
downloadcurunir-f20552c81c88af542acf50168b6ad5699a2642ed.tar
curunir-f20552c81c88af542acf50168b6ad5699a2642ed.zip
Fixed Mensa module... again.
Diffstat (limited to 'modules')
-rw-r--r--modules/mensa.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/mensa.py b/modules/mensa.py
index 5faa956..650eafa 100644
--- a/modules/mensa.py
+++ b/modules/mensa.py
@@ -106,11 +106,13 @@ class Module(ModuleBase):
s = s.replace('&lt;', '<')
s = s.replace('&gt;', '>')
s = s.replace('&quot;', '"')
+ s = s.replace('&ldquo;', '“')
s = s.replace('<br />', ' ')
s = re.sub(r'-\s+', '-', s)
s = re.sub(r'\s+', ' ', s)
s = re.sub(r'([a-zäöüß])-([a-zäöüß])', r'\1\2', s)
- s = re.sub(r'<span[^>]*>(.+?)</span>', r'\1', s)
+ s = re.sub(r'<img[^>]*logo_bio[^>]*>', 'Bio', s)
+ s = re.sub(r'<[^>]*>', '', s)
return s
meals = map(unescape, meals)