Correction des détections d'heure manquante

Fix #413
This commit is contained in:
Jean-Marie Favreau 2025-04-26 12:03:24 +02:00
parent 349de37c7d
commit 9d93d25432
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ class CExtractor(TwoStepsExtractorNoPause):
title = soup.select_one(".showDesc h4 a.summary").text
start_day = soup.select_one(".showDate .value-title")
start_time = "warning"
start_time = -1
if start_day is not None:
start_day = start_day["title"]

View File

@ -230,7 +230,7 @@ class Extractor(ABC):
published = False
start_day = datetime.now().date().strftime("%Y-%m-%d")
warnings.append(Extractor.Warning.NO_START_DATE)
if isinstance(start_time, str):
if isinstance(start_time, int):
print("WARNING: start time was not found")
published = False
start_time = None