From 4e9ba8a01fcec1282914343d52380d011c4c697b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20F=C3=B6rster?= Date: Sun, 6 Mar 2016 22:14:11 +0100 Subject: [PATCH 1/2] added support for communities with more than one map the map search loop will not stop to run after first sucessfull parsing. it will continue with the next entries. this may be useful if a community switches its firmware together with the map type --- lib/nodelistparser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nodelistparser.php b/lib/nodelistparser.php index ce66d6d..6054416 100644 --- a/lib/nodelistparser.php +++ b/lib/nodelistparser.php @@ -466,7 +466,7 @@ private function _parseList() { // found something $parsedSources[] = $url; - break; + //break; } } else @@ -776,7 +776,7 @@ private function _getFromFfmap($comName, $comUrl) if(in_array($comUrl, $this->_urlBlackList)) { $this->_addCommunityMessage($comUrl.' is blacklisted - skipping'); - return false; + return false; } $result = simpleCachedCurl($comUrl, $this->_curlCacheTime, $this->_debug); From cf78dcc256696ece63212493d775ae93ac823101 Mon Sep 17 00:00:00 2001 From: Steffen Date: Sun, 6 Mar 2016 22:19:30 +0100 Subject: [PATCH 2/2] Update nodelistparser.php extended comment --- lib/nodelistparser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nodelistparser.php b/lib/nodelistparser.php index 6054416..480cef8 100644 --- a/lib/nodelistparser.php +++ b/lib/nodelistparser.php @@ -466,7 +466,7 @@ private function _parseList() { // found something $parsedSources[] = $url; - //break; + // don't break here to enable more than one active map } } else