|
|
|
@ -81,12 +81,13 @@ class JourneeMondialePlugin(Plugin):
|
|
|
|
|
try:
|
|
|
|
|
items = soup.find("div", id="journeesDuJour").find_all("article")
|
|
|
|
|
for item in items:
|
|
|
|
|
entries.append(
|
|
|
|
|
{
|
|
|
|
|
"url": item.find("a")["href"],
|
|
|
|
|
"title": item.find("h2").string,
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
if (first_link := item.find("a")) is None:
|
|
|
|
|
continue
|
|
|
|
|
if (first_title := item.find("h2")) is None:
|
|
|
|
|
continue
|
|
|
|
|
link = first_link["href"]
|
|
|
|
|
title = first_title.string
|
|
|
|
|
entries.append({"url": link, "title": title})
|
|
|
|
|
except (ValueError, KeyError):
|
|
|
|
|
return ""
|
|
|
|
|
|
|
|
|
|