www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 329ac1db8a9bc8acbda02d1cc4c507c4f1adda59
parent 048d7f77b829829627064c701ded5fca6d1928b4
Author: Avram Lyon <ajlyon@gmail.com>
Date:   Tue, 14 Sep 2010 14:07:34 +0000

Frank's updated Japan Times Online translator to fix RSS issue


Diffstat:
Mtranslators/Japan Times Online.js | 24++++++++++++++++++++++--
1 file changed, 22 insertions(+), 2 deletions(-)

diff --git a/translators/Japan Times Online.js b/translators/Japan Times Online.js @@ -3,7 +3,7 @@ "translatorType":4, "label":"Japan Times Online", "creator":"Frank Bennett", - "target":"^http://(?:www|search)\\.japantimes\\.co\\.jp/(?:cgi-bin|gsearch|features|entertainment|sports|life|news)", + "target":"^http://(?:www|search)\\.japantimes\\.co\\.jp/(?:cgi-bin|gsearch|features|entertainment|sports|life|news|rss)", "minVersion":"2.0b7", "maxVersion":"", "priority":100, @@ -11,11 +11,31 @@ "lastUpdated":"2009-01-23 02:17:09" } + +/* + Japan Times Online Translator + Copyright (C) 2009-2010 Frank Bennett, biercenator@gmail.com + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + + // ################################# // #### Local utility functions #### // ################################# -var itemRe = new RegExp('^http://search\.japantimes\.co\.jp/cgi-bin/[a-z]{2}[0-9]{8}[a-z0-9]{2}\.html'); +var itemRe = new RegExp('^http://search\.japantimes\.co\.jp/(?:cgi-bin|gsearch|features|entertainment|sports|life|news|rss)/[a-z]{2}[0-9]{8}[a-z0-9]{2}\.html'); var getResolver = function (doc) { var namespace, resolver;