From d5f6ba2be389ad6f5e4e6cf1a2a69abd61177db1 Mon Sep 17 00:00:00 2001 From: Michael Berkowitz Date: Fri, 24 Aug 2007 19:25:58 +0000 Subject: [PATCH] --- scrapers.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scrapers.sql b/scrapers.sql index c35d5e3a8..bd5229c03 100644 --- a/scrapers.sql +++ b/scrapers.sql @@ -24,7 +24,7 @@ -- Set the following timestamp to the most recent scraper update date REPLACE INTO version VALUES ('repository', STRFTIME('%s', '2007-08-15 16:00:00')); -REPLACE INTO translators VALUES ('96b9f483-c44d-5784-cdad-ce21b984fe01', '1.0.0b4.r1', '', '2007-06-21 20:00:00', '1', '100', '4', 'Amazon.com', 'Sean Takats', '^https?://(?:www\.)?amazon', +REPLACE INTO translators VALUES ('96b9f483-c44d-5784-cdad-ce21b984fe01', '1.0.0b4.r1', '', '2007-08-24 20:00:00', '1', '100', '4', 'Amazon.com', 'Sean Takats', '^https?://(?:www\.)?amazon', 'function detectWeb(doc, url) { var suffixRe = new RegExp("https?://(?:www\.)?amazon\.([^/]+)/"); @@ -2027,11 +2027,11 @@ function doWeb(doc, url) { '); -REPLACE INTO translators VALUES ('6ec8008d-b206-4a4c-8d0a-8ef33807703b', '1.0.0b4.r5', '', '2007-07-31 16:45:00', '1', '100', '4', 'The Economist', 'Michael Berkowitz', '^http://(www.)?economist.com/', +REPLACE INTO translators VALUES ('6ec8008d-b206-4a4c-8d0a-8ef33807703b', '1.0.0b4.r5', '', '2007-08-24 20:00:00', '1', '100', '4', 'The Economist', 'Michael Berkowitz', '^http://(www.)?economist.com/', 'function detectWeb(doc, url) { if (doc.location.href.indexOf("search") != -1) { return "multiple"; - } else if (doc.location.href.indexOf("displaystory") != -1 || doc.location.href.indexOf("cityPage") != -1) { + } else if (doc.location.href.toLowerCase().indexOf("displaystory") != -1 || doc.location.href.indexOf("cityPage") != -1) { return "magazineArticle"; } }', @@ -2125,7 +2125,7 @@ function doWeb(doc, url) { for (var i in newItems) { urls.push(i); } - } else if (doc.location.href.indexOf("displaystory") != -1) { + } else if (doc.location.href.toLowerCase().indexOf("displaystory") != -1) { urls.push(url); }