Files
RSSHub/lib/v2/dahecube/radar.js
linbuxiao c9f1ed41f7 feat(router): dahecube 大河财立方 (#8280)
* feat(router): dahecube

* fix: radar.js

* fix(radar): docs url

Co-authored-by: TonyRL <TonyRL@users.noreply.github.com>
2022-02-25 10:25:10 +08:00

24 lines
729 B
JavaScript

const utils = require('./utils');
module.exports = {
'dahecube.com': {
_name: '大河财立方',
'.': [
{
title: '新闻',
docs: 'https://docs.rsshub.app/new-media.html#da-he-cai-li-fang',
source: ['/channel.html?recid=:id', '/index.html?recid=:id'],
target: ({ id }) => {
let type = 'recommend';
Object.entries(utils.TYPE).forEach(([key, value]) => {
if (value.id === id) {
type = key;
}
});
return `/dahecube/${type}`;
},
},
],
},
};