mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-09 14:40:23 +08:00
* feat(route): add u3c3 - u3c3 的几个子分类页面 - 搜索功能 - torrent/magnet - 中英文档 * Update docs/en/multimedia.md docs(u3c3): fix typo in english document Co-authored-by: Tony <TonyRL@users.noreply.github.com> * Update lib/v2/u3c3/index.js Co-authored-by: Tony <TonyRL@users.noreply.github.com> * feat(radar): add u3c3.com radar * refactor(u3c3): clean code * docs(u3c3): fix lost info in u3c3 english document * fix(radar): fix typo in u3c3 radar Co-authored-by: noname <no-email@no.email>
30 lines
1.0 KiB
JavaScript
30 lines
1.0 KiB
JavaScript
module.exports = {
|
|
'u3c3.com': {
|
|
_name: 'u3c3',
|
|
'.': [
|
|
{
|
|
title: '分类',
|
|
docs: 'https://docs.rsshub.app/multimedia.html#u3c3-fen-lei',
|
|
source: '/',
|
|
target: (params, url) => {
|
|
const searchParams = new URL(url).searchParams;
|
|
const type = searchParams.has('type') ? searchParams.get('type') : '';
|
|
return `/u3c3/${type}`;
|
|
},
|
|
},
|
|
{
|
|
title: '关键词搜索',
|
|
docs: 'https://docs.rsshub.app/multimedia.html#u3c3-guan-jian-ci-sou-suo',
|
|
source: '/',
|
|
target: (params, url) => {
|
|
const searchParams = new URL(url).searchParams;
|
|
if (searchParams.has('search')) {
|
|
const keyword = searchParams.get('search');
|
|
return `/u3c3/search/${keyword}`;
|
|
}
|
|
},
|
|
},
|
|
],
|
|
},
|
|
};
|