From 6ae5f245f441ba86f59d487dda8adf4870953782 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Fri, 21 May 2021 10:11:56 +0100 Subject: [PATCH] Improve Northgate detection Previous method miscategorised some authorities as Northgate. This method is more reliable. --- lib/uk_planning_scraper/authority.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/uk_planning_scraper/authority.rb b/lib/uk_planning_scraper/authority.rb index 9c2c14b..b2db95b 100644 --- a/lib/uk_planning_scraper/authority.rb +++ b/lib/uk_planning_scraper/authority.rb @@ -70,7 +70,7 @@ module UKPlanningScraper def system if @url.match(/search\.do\?action=advanced/i) 'idox' - elsif @url.match(/\.aspx/i) + elsif @url.match(/generalsearch/i) 'northgate' elsif @url.match(/ocellaweb/i) 'ocellaweb'