correction signature

This commit is contained in:
Jean-Marie Favreau 2024-10-12 18:20:47 +02:00
parent 5f1f5fd003
commit 0ab8ddf404

View File

@ -45,10 +45,10 @@ class CExtractor(TwoStepsExtractor):
else:
image = None
desc = soup.select("head meta[name=description]")[0]["content"]
start_day = self.parse_french_date(desc.split("-")[0])
start_time = self.parse_french_time(desc.split("-")[1])
end_time = self.parse_french_time(desc.split("-")[2])
end_day = self.guess_end_day(start_day, start_time, end_time)
start_day = Extractor.parse_french_date(desc.split("-")[0])
start_time = Extractor.parse_french_time(desc.split("-")[1])
end_time = Extractor.parse_french_time(desc.split("-")[2])
end_day = Extractor.guess_end_day(start_day, start_time, end_time)
location = self.nom_lieu
descriptions = soup.select("div.vce-col-content")