* feat(route): add 其乐论坛 * update lib/v2/keylol/radar.js * fix: remove unnecessary type casting ---------
19 lines
567 B
JavaScript
19 lines
567 B
JavaScript
module.exports = {
|
|
'keylol.com': {
|
|
_name: '其乐',
|
|
'.': [
|
|
{
|
|
title: '论坛',
|
|
docs: 'https://docs.rsshub.app/game.html#qi-le-lun-tan',
|
|
source: ['/:category', '/'],
|
|
target: (params, url) => {
|
|
url = new URL(url);
|
|
const path = url.href.match(/keylol\.com\/(forum.php\?.*|f\d+-\d+)?/).replace(/forum.php\?/, '')[1];
|
|
|
|
return `/keylol${path ? `/${path}` : ''}`;
|
|
},
|
|
},
|
|
],
|
|
},
|
|
};
|