* feat(route): add 秀动网 (#12489) * docs(maintainer): amend route path * update(route/showstart): remove 'keyword' param in '/event' path, add tags to xml title * refactor(route/showstart): extract service method * update(showstart/route): add '/search' path * update(route/showstart): add title for '/search' path, clean code * Update website/docs/routes/shopping.mdx * Update lib/v2/showstart/radar.js * Update lib/v2/showstart/radar.js * update(route/showstart): add request utils * update(showstart): use web api * update(showstart): add event tags * update(showstart): change pageSize * fix: add a note to crpsign calculation ---------
29 lines
1.1 KiB
JavaScript
29 lines
1.1 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/${keyword}`;
|
|
},
|
|
},
|
|
],
|
|
},
|
|
};
|