Files
RSSHub/lib/v2/keylol/radar.js
T
Ethan Shen ea41fd8ece feat(route): add 其乐论坛 (#12768)
* feat(route): add 其乐论坛

* update lib/v2/keylol/radar.js

* fix: remove unnecessary type casting

---------
2023-07-10 18:13:14 +08:00

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}` : ''}`;
},
},
],
},
};