On corrige les lieux (décodage) pour les amis du temps des cerises

This commit is contained in:
Jean-Marie Favreau 2025-02-08 19:34:10 +01:00
parent ad089b87ba
commit 14ab8627c3

View File

@ -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é"]