From f81d83d7b20f43ed86c60ddd8bcc4b01c25251b4 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Tue, 22 Aug 2017 20:12:38 +0200 Subject: [PATCH] Version 1.0.1: Fix Le Monde IDs in gopher --- VERSION | 2 +- changelog.md | 4 ++++ src/be/nikiroo/gofetch/support/LeMonde.java | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) 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(); -- 2.27.0