From: Niki Roo Date: Tue, 22 Aug 2017 18:12:38 +0000 (+0200) Subject: Version 1.0.1: Fix Le Monde IDs in gopher X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=f81d83d7b20f43ed86c60ddd8bcc4b01c25251b4;p=gofetch.git Version 1.0.1: Fix Le Monde IDs in gopher --- diff --git a/VERSION b/VERSION index 3eefcb9..7dea76e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.0 +1.0.1 diff --git a/changelog.md b/changelog.md index 0bd673f..33e1b0e 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,10 @@ ## Version 1.0.0 +- Fix a problem in the Le Monde ids for gopher + +## Version 1.0.0 + - Add Le Monde support - Fix some small textual issues diff --git a/src/be/nikiroo/gofetch/support/LeMonde.java b/src/be/nikiroo/gofetch/support/LeMonde.java index 4e22b4c..454b7e3 100644 --- a/src/be/nikiroo/gofetch/support/LeMonde.java +++ b/src/be/nikiroo/gofetch/support/LeMonde.java @@ -37,7 +37,8 @@ public class LeMonde extends BasicSupport { Elements contentElements = article.getElementsByClass("txt3"); if (times.size() > 0 && titleElements.size() > 0 && contentElements.size() > 0) { - String id = times.get(0).attr("datetime").replace(":", "_"); + String id = times.get(0).attr("datetime").replace(":", "_") + .replace("+", "_"); String title = "[" + topic + "] " + titleElements.get(0).text(); String content = contentElements.get(0).text();