Files
RSSHub/lib/v2/zhibo8/radar.js
T
Ethan ShenandTonyRL 5a59ec4521 feat(route): add 直播吧滚动新闻 (#7621)
* feat(route): add 直播吧滚动新闻

* refactor: migrate to v2

Co-authored-by: TonyRL <TonyRL@users.noreply.github.com>
2022-02-22 04:28:57 +08:00

28 lines
877 B
JavaScript

module.exports = {
'zhibo8.cc': {
_name: '直播吧',
bbs: [
{
title: '子论坛',
docs: 'https://docs.rsshub.app/bbs.html#zhi-bo-ba',
source: ['/'],
target: (_params, url) => `/zhibo8/forum/${new URL(url).searchParams.get('fid')}`,
},
{
title: '回帖',
docs: 'https://docs.rsshub.app/bbs.html#zhi-bo-ba',
source: ['/'],
target: (_params, url) => `/zhibo8/post/${new URL(url).searchParams.get('tid')}`,
},
],
news: [
{
title: '滚动新闻',
docs: 'https://docs.rsshub.app/bbs.html#zhi-bo-ba',
source: ['/:category'],
target: '/zhibo8/more/:category',
},
],
},
};