Frank's updated Japan Times Online translator to fix RSS issue
This commit is contained in:
parent
048d7f77b8
commit
329ac1db8a
1 changed files with 22 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue