From 4b686a527fd0079f7cb979f823dcfad987d6f488 Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Mon, 11 Jul 2022 10:02:52 +0200 Subject: [PATCH] Freeplane: query Sourceforge API --- modules/Freeplane.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/Freeplane.php b/modules/Freeplane.php index 81b48f6..8593026 100644 --- a/modules/Freeplane.php +++ b/modules/Freeplane.php @@ -2,11 +2,11 @@ class Freeplane extends PatchBase { function __construct() { - parent::__construct('Freeplane Team', 'Freeplane', 'https://www.freeplane.org/wiki/index.php/Home'); + parent::__construct('Freeplane Team', 'Freeplane', 'https://docs.freeplane.org/'); } function check() : bool { - if ($this->fetch('https://www.freeplane.org/wiki/index.php/Home')) - return $this->parse('/\(this downloads the stable version ([\d\.]+)\)/'); + if ($this->fetch_json('https://sourceforge.net/projects/freeplane/best_release.json')) + return $this->parse_json('filename', '/-([\d\.]+)\.[a-z]+$/'); return false; } }