Files
RSSHub/lib/v2/cctv/radar.js
T
yuxinliu-alexandAlex Liu fccb91838d fix(route): 央视新闻-专题 支持获取Author字段 (#9568)
* fix(route): 央视新闻-专题 支持获取Author字段

* refactor: migrate to v2

* fix: date parsing in /cctv/photo/jx

* fix: special date parsing

fix: xwlb not working

fix: mzzlbg item description

fix: news use https

fix: xinwen1j1 not working

* feat: add radar

Co-authored-by: Alex Liu <yuxinliu.alex@gmail.com>
2022-04-20 20:11:58 +08:00

42 lines
1.4 KiB
JavaScript

module.exports = {
'cctv.com': {
_name: '央视新闻',
news: [
{
title: '新闻专题',
docs: 'https://docs.rsshub.app/traditional-media.html#yang-shi-xin-wen',
source: ['/special/*id'],
target: (params) => `/cctv/special/${params.id.split('/')[0]}`,
},
{
title: '专题',
docs: 'https://docs.rsshub.app/traditional-media.html#yang-shi-xin-wen',
source: ['/:category'],
target: '/cctv/:category',
},
],
photo: [
{
title: '央视网图片《镜象》',
docs: 'https://docs.rsshub.app/traditional-media.html#yang-shi-xin-wen',
source: ['/jx', '/'],
target: '/cctv/photo/jx',
},
],
tv: [
{
title: '新闻联播',
docs: 'https://docs.rsshub.app/traditional-media.html#yang-shi-xin-wen',
source: ['/lm/xwlb', '/'],
target: '/cctv/xwlb',
},
{
title: '栏目',
docs: 'https://docs.rsshub.app/traditional-media.html#yang-shi-xin-wen',
source: ['/lm/*path', '/'],
target: (params) => `/cctv/lm/${params.path.replace('/videoset', '')}`,
},
],
},
};