mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-07 21:47:57 +08:00
* feat(route): add LVV2 * fix(route): add timezone and remove title encoded in link * fix(route): fix regex
80 lines
2.9 KiB
JavaScript
80 lines
2.9 KiB
JavaScript
module.exports = {
|
|
'lvv2.com': {
|
|
_name: 'LVV2',
|
|
'.': [
|
|
{
|
|
title: '热门',
|
|
docs: 'https://docs.rsshub.app/new-media.html#lvv2',
|
|
source: ['/sort-hot'],
|
|
target: '/lvv2/news/sort-hot',
|
|
},
|
|
{
|
|
title: '最新',
|
|
docs: 'https://docs.rsshub.app/new-media.html#lvv2',
|
|
source: ['/sort-new'],
|
|
target: '/lvv2/news/sort-new',
|
|
},
|
|
{
|
|
title: '得分',
|
|
docs: 'https://docs.rsshub.app/new-media.html#lvv2',
|
|
source: ['/sort-score', '/sort-score/:sort'],
|
|
target: (params) => {
|
|
if (!params.sort) {
|
|
return '/lvv2/news/sort-score';
|
|
} else {
|
|
return `/lvv2/news/sort-score/${params.sort}`;
|
|
}
|
|
},
|
|
},
|
|
{
|
|
title: '24小时榜',
|
|
docs: 'https://docs.rsshub.app/new-media.html#lvv2',
|
|
source: ['/sort-realtime', '/sort-realtime/:sort'],
|
|
target: (params) => {
|
|
if (!params.sort) {
|
|
return '/lvv2/news/sort-realtime';
|
|
} else {
|
|
return `/lvv2/news/sort-realtime/${params.sort}`;
|
|
}
|
|
},
|
|
},
|
|
{
|
|
title: '热门 24小时 Top 10',
|
|
docs: 'https://docs.rsshub.app/new-media.html#lvv2',
|
|
source: ['/', '/sort-hot'],
|
|
target: '/lvv2/top/sort-hot',
|
|
},
|
|
{
|
|
title: '最新 24小时 Top 10',
|
|
docs: 'https://docs.rsshub.app/new-media.html#lvv2',
|
|
source: ['/sort-new'],
|
|
target: '/lvv2/top/sort-new',
|
|
},
|
|
{
|
|
title: '得分 24小时 Top 10',
|
|
docs: 'https://docs.rsshub.app/new-media.html#lvv2',
|
|
source: ['/sort-score', '/sort-score/:sort'],
|
|
target: (params) => {
|
|
if (!params.sort) {
|
|
return '/lvv2/top/sort-score';
|
|
} else {
|
|
return `/lvv2/top/sort-score/${params.sort}`;
|
|
}
|
|
},
|
|
},
|
|
{
|
|
title: '24小时榜 24小时 Top 10',
|
|
docs: 'https://docs.rsshub.app/new-media.html#lvv2',
|
|
source: ['/sort-realtime', '/sort-realtime/:sort'],
|
|
target: (params) => {
|
|
if (!params.sort) {
|
|
return '/lvv2/top/sort-realtime';
|
|
} else {
|
|
return `/lvv2/top/sort-realtime/${params.sort}`;
|
|
}
|
|
},
|
|
},
|
|
],
|
|
},
|
|
};
|