mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-02 10:08:02 +08:00
90 lines
3.7 KiB
JavaScript
90 lines
3.7 KiB
JavaScript
module.exports = {
|
|
'qq.com': {
|
|
_name: '腾讯',
|
|
egame: [
|
|
{
|
|
title: '企鹅电竞直播间',
|
|
docs: 'https://docs.rsshub.app/live.html#qi-e-dian-jing-zhi-bo-jian-kai-bo',
|
|
source: '/:id',
|
|
target: (params) => {
|
|
if (params.id.match(/^\d+$/)) {
|
|
return '/egameqq/room/:id';
|
|
}
|
|
},
|
|
},
|
|
],
|
|
'mp.weixin': [
|
|
{
|
|
title: '微信公众号栏目',
|
|
docs: 'https://docs.rsshub.app/new-media.html#gong-zhong-hao-lan-mu-fei-tui-song-li-shi-xiao-xi',
|
|
source: '/mp/homepage',
|
|
target: (params, url) => `/wechat/mp/homepage/${new URL(url).searchParams.get('__biz')}/${new URL(url).searchParams.get('hid')}/${new URL(url).searchParams.get('cid') ? new URL(url).searchParams.get('cid') : ''}`,
|
|
},
|
|
{
|
|
title: '微信公众号话题',
|
|
docs: 'https://docs.rsshub.app/new-media.html#wei-xin-gong-zhong-hao-wen-zhang-hua-ti-tag',
|
|
source: '/mp/appmsgalbum',
|
|
target: (params, url) => `/wechat/mp/msgalbum/${new URL(url).searchParams.get('__biz')}/${new URL(url).searchParams.get('album_id')}`,
|
|
},
|
|
],
|
|
new: [
|
|
{
|
|
title: '腾讯企鹅号 - 更新',
|
|
docs: 'https://docs.rsshub.app/new-media.html#teng-xun-qi-e-hao-geng-xin',
|
|
source: ['/omn/author/:mid'],
|
|
target: '/tencent/news/author/:mid',
|
|
},
|
|
{
|
|
title: '腾讯新闻 - 新型冠状病毒肺炎疫情实时追踪',
|
|
docs: 'https://docs.rsshub.app/other.html#xin-guan-fei-yan-yi-qing-xin-wen-dong-tai',
|
|
source: ['/zt2020/page/feiyan.htm'],
|
|
target: '/tencent/news/coronavirus/total',
|
|
},
|
|
],
|
|
pvp: [
|
|
{
|
|
title: '王者荣耀 - 新闻中心',
|
|
docs: 'https://docs.rsshub.app/game.html#wang-zhe-rong-yao',
|
|
source: ['/web201706/*', '/'],
|
|
target: '/tencent/pvp/newsindex/all',
|
|
},
|
|
],
|
|
v: [
|
|
{
|
|
title: '视频 - 播放列表',
|
|
docs: 'https://docs.rsshub.app/multimedia.html#teng-xun-shi-pin',
|
|
source: '/x/cover/:id',
|
|
target: (params) => {
|
|
const id = params.id.match('(.*).html')[1];
|
|
return id ? `/tencentvideo/playlist/${id}` : '';
|
|
},
|
|
},
|
|
{
|
|
title: '视频 - 播放列表',
|
|
docs: 'https://docs.rsshub.app/multimedia.html#teng-xun-shi-pin',
|
|
source: '/x/cover/:id/:detail',
|
|
target: '/tencentvideo/playlist/:id',
|
|
},
|
|
],
|
|
'wiki.connect': [
|
|
{
|
|
title: 'QQ 互联 SDK 更新日志',
|
|
docs: 'https://docs.rsshub.app/program-update.html#qq-hu-lian-sdk',
|
|
source: '/',
|
|
target: (_params, url) => `/tencent/qq/sdk/changelog/${new URL(url).pathname === '/ios_sdk历史变更' ? 'iOS' : 'Android'}`,
|
|
},
|
|
],
|
|
},
|
|
'tencent.com': {
|
|
_name: '腾讯云',
|
|
'.': [
|
|
{
|
|
title: '云+社区专栏',
|
|
docs: 'https://docs.rsshub.app/programming.html#teng-xun-yun-yun-she-qu-zhuan-lan',
|
|
source: ['/developer/column/:id', '/developer/column/:id/:tag', '/'],
|
|
target: (params, url) => `/tencent/cloud/column/${url.match(/column\/(\d+)/)[1]}${/\/tag-\d+/.test(url) ? `/${url.match(/\/tag-(\d+)/)[1]}` : ''}`,
|
|
},
|
|
],
|
|
},
|
|
};
|