diff --git a/src/agenda_culturel/import_tasks/custom_extractors/lefotomat.py b/src/agenda_culturel/import_tasks/custom_extractors/lefotomat.py index 189fba6..53e8e1f 100644 --- a/src/agenda_culturel/import_tasks/custom_extractors/lefotomat.py +++ b/src/agenda_culturel/import_tasks/custom_extractors/lefotomat.py @@ -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")