Files
RSSHub/lib/v2/zyw/radar.js
T
Ethan Shen ad33615e48 feat(route): add zyw今日热榜 (#12527)
* feat(route): add zyw今日热榜

* fix typo

* fix: remove cache.tryGet

* fix radar params

* update lib/v2/zyw/radar.js

---------
2023-05-20 01:59:10 +08:00

17 lines
487 B
JavaScript

module.exports = {
'zyw.asia': {
_name: 'zyw',
hot: [
{
title: '今日热榜',
docs: 'https://docs.rsshub.app/new-media.html#zyw-jin-ri-re-bang',
source: ['/'],
target: (params, url) => {
const matches = new URL(url).href.match(/type=(\w+)/);
return `/zyw/hot${matches ? `/${matches[1]}` : ''}`;
},
},
],
},
};