Files
RSSHub/lib/v2/showstart/radar.js
T
lchtao26 be74209c6c feat(route/秀动网): add more routes (#13884)
* feat(route): add artist route

* feat(route): add brand route

* chore: merge '/params' route into '/search' route

* chore: fix and clean code

* chore: sort new entries in alphabetical order.

* chore: add new routes in maintainer

* chore: sort maintain entries in alphabetical order.

* fix: fix event route
2023-11-26 20:12:52 +00:00

41 lines
1.6 KiB
JavaScript

module.exports = {
'showstart.com': {
_name: '秀动网',
www: [
{
title: '演出更新',
docs: 'https://docs.rsshub.app/routes/shopping#xiu-dong-wang-yan-chu-geng-xin',
source: ['/event/list'],
target: (_, url) => {
const search = new URL(url).searchParams;
const cityCode = search.get('cityCode') || 0;
const showStyle = search.get('showStyle') || 0;
return `/showstart/event/${cityCode}/${showStyle}`;
},
},
{
title: '演出搜索',
docs: 'https://docs.rsshub.app/routes/shopping#xiu-dong-wang-yan-chu-sou-suo',
source: ['/event/list'],
target: (_, url) => {
const search = new URL(url).searchParams;
const keyword = search.get('keyword') || '';
return `/showstart/search/event/${keyword}`;
},
},
{
title: '音乐人 - 演出更新',
docs: 'https://docs.rsshub.app/routes/shopping#yin-yue-ren-yan-chu-geng-xin',
source: ['/artist/:id'],
target: '/showstart/artist/:id',
},
{
title: '厂牌 - 演出更新',
docs: 'https://docs.rsshub.app/routes/shopping#chang-pai-yan-chu-geng-xin',
source: ['/host/:id'],
target: '/showstart/brand/:id',
},
],
},
};