From 14ab8627c39fae66db4e3937a3f37c4e83a24b9e Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Sat, 8 Feb 2025 19:34:10 +0100 Subject: [PATCH] =?UTF-8?q?On=20corrige=20les=20lieux=20(d=C3=A9codage)=20?= =?UTF-8?q?pour=20les=20amis=20du=20temps=20des=20cerises?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../import_tasks/custom_extractors/amisdutempsdescerises.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agenda_culturel/import_tasks/custom_extractors/amisdutempsdescerises.py b/src/agenda_culturel/import_tasks/custom_extractors/amisdutempsdescerises.py index 2c43c29..e5c26e4 100644 --- a/src/agenda_culturel/import_tasks/custom_extractors/amisdutempsdescerises.py +++ b/src/agenda_culturel/import_tasks/custom_extractors/amisdutempsdescerises.py @@ -32,13 +32,13 @@ class CExtractor(Extractor): tags = [] start_day = e["ev_date"].split(' ')[0] start_time = e["ev_time"] - title = html.unescape(e["ev_titre"]) # TODO: décoder + title = html.unescape(e["ev_titre"]) if "ev_sstitre" in e and e["ev_sstitre"] != '': title = title + ' - ' + html.unescape(e["ev_sstitre"]) soup = BeautifulSoup(e["ev_info"], "html.parser") description = soup.text - location = e["li_nom"] if "li_nom" in e else None + location = html.unescape(e["li_nom"]) if "li_nom" in e else None if "ev_canceled" in e and e["ev_canceled"] != '0': tags += ["annulé"]