Fix import la raymonde
This commit is contained in:
parent
fe8600485a
commit
3287085b70
@ -38,9 +38,12 @@ class CExtractor(TwoStepsExtractorNoPause):
|
|||||||
|
|
||||||
description = soup.select_one(".showDetails.description").text
|
description = soup.select_one(".showDetails.description").text
|
||||||
image = soup.select(".showDetails.description img")
|
image = soup.select(".showDetails.description img")
|
||||||
if image is not None:
|
if image is not None and len(image) > 0:
|
||||||
image_alt = image[-1]["alt"]
|
image_alt = image[-1]["alt"]
|
||||||
image = image[-1]["src"]
|
image = image[-1]["src"]
|
||||||
|
else:
|
||||||
|
image = None
|
||||||
|
image_alt = None
|
||||||
|
|
||||||
if start_time is None:
|
if start_time is None:
|
||||||
title += " - Attention: l'heure n'a pu être extraite"
|
title += " - Attention: l'heure n'a pu être extraite"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user