Skip to content

Commit

Permalink
fix: Gérer les flux RSS sans date.
Browse files Browse the repository at this point in the history
  • Loading branch information
regseb committed Aug 11, 2024
1 parent 40f9e5d commit b9e5397
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scraper/list/rss/rss.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ const RSSScraper = class {
date:
item.querySelector("pubDate")?.textContent ??
// S'il n'y a pas de date de publication, utiliser la "dc:date".
item.querySelector("date").textContent,
item.querySelector("date")?.textContent ??
0,
desc: item.querySelector("description")?.textContent ?? "",
guid: item.querySelector("guid")?.textContent ?? "",
img: item
Expand Down

0 comments on commit b9e5397

Please sign in to comment.