Files
RSSHub/lib/v2/chiculture/radar.js
T
Hengyu 142d307b8a fix(route): fix route chiculture that can not parse date correctly sometimes (#12161)
* fix(route): chiculture can not parse date correctly sometimes

* fix: radar target
2023-03-23 18:33:50 +08:00

17 lines
570 B
JavaScript

module.exports = {
'chiculture.org.hk': {
_name: '通識・現代中國',
'.': [
{
title: '議題熱話',
docs: 'https://docs.rsshub.app/new-media.html#tong-shi-・-xian-dai-zhong-guo',
source: ['/tc/hot-topics'],
target: (_, url) => {
const searchParams = new URL(url).searchParams;
return `/chiculture${searchParams.has('category') ? `/${searchParams.get('category')}` : ''}`;
},
},
],
},
};