156 lines
5.9 KiB
JavaScript
156 lines
5.9 KiB
JavaScript
const dy2 = {
|
|
title: '网易号(通用)',
|
|
docs: 'https://docs.rsshub.app/routes/new-media#wang-yi-hao',
|
|
source: ['/dy/media/:id', '/news/sub/:id'],
|
|
target: (params) => `/163/dy2/${params.id.replace('.html', '')}`,
|
|
};
|
|
|
|
module.exports = {
|
|
'163.com': {
|
|
_name: '网易',
|
|
'.': [dy2],
|
|
'3g': [
|
|
dy2,
|
|
{
|
|
title: '独家栏目',
|
|
docs: 'https://docs.rsshub.app/routes/new-media#wang-yi-du-jia-lan-mu',
|
|
source: ['/touch/exclusive/sub/:id'],
|
|
target: '/163/exclusive/:id?',
|
|
},
|
|
],
|
|
'c.m': [dy2],
|
|
ds: [
|
|
{
|
|
title: '大神',
|
|
docs: 'https://docs.rsshub.app/routes/game#wang-yi-da-shen',
|
|
source: '/user/:id',
|
|
target: '/163/ds/:id',
|
|
},
|
|
],
|
|
m: [
|
|
{
|
|
title: '今日关注',
|
|
docs: 'https://docs.rsshub.app/routes/new-media#wang-yi-xin-wen-jin-ri-guan-zhu',
|
|
source: ['/'],
|
|
target: '/163/today',
|
|
},
|
|
],
|
|
music: [
|
|
{
|
|
title: '云音乐 - 用户歌单',
|
|
docs: 'https://docs.rsshub.app/routes/multimedia#wang-yi-yun-yin-yue',
|
|
source: '/',
|
|
target: (params, url) => {
|
|
const id = new URL(url).hash.match(/home\?id=(.*)/)[1];
|
|
return id ? `/163/music/user/playlist/${id}` : '';
|
|
},
|
|
},
|
|
{
|
|
title: '云音乐 - 歌单歌曲',
|
|
docs: 'https://docs.rsshub.app/routes/multimedia#wang-yi-yun-yin-yue',
|
|
source: '/',
|
|
target: (params, url) => {
|
|
const id = new URL(url).hash.match(/playlist\?id=(.*)/)[1];
|
|
return id ? `/163/music/playlist/${id}` : '';
|
|
},
|
|
},
|
|
{
|
|
title: '云音乐 - 歌手专辑',
|
|
docs: 'https://docs.rsshub.app/routes/multimedia#wang-yi-yun-yin-yue',
|
|
source: '/',
|
|
target: (params, url) => {
|
|
const id = new URL(url).hash.match(/album\?id=(.*)/)[1];
|
|
return id ? `/163/music/artist/${id}` : '';
|
|
},
|
|
},
|
|
{
|
|
title: '云音乐 - 歌手歌曲',
|
|
docs: 'https://docs.rsshub.app/routes/multimedia#wang-yi-yun-yin-yue',
|
|
source: '/',
|
|
target: (_params, url) => {
|
|
const id = new URL(url).hash.match(/artist\?id=(.*)/)[1];
|
|
return id ? `/163/music/artist/songs/${id}` : '';
|
|
},
|
|
},
|
|
{
|
|
title: '云音乐 - 电台节目',
|
|
docs: 'https://docs.rsshub.app/routes/multimedia#wang-yi-yun-yin-yue',
|
|
source: '/',
|
|
target: (params, url) => {
|
|
const id = new URL(url).hash.match(/djradio\?id=(.*)/)[1];
|
|
return id ? `/163/music/djradio/${id}` : '';
|
|
},
|
|
},
|
|
{
|
|
title: '用户动态',
|
|
docs: 'https://docs.rsshub.app/routes/multimedia#wang-yi-yun-yin-yue-yong-hu-dong-tai',
|
|
source: ['/'],
|
|
target: (_, url) => {
|
|
const id = new URL(url).hash.match(/event\?id=(.*)/)[1];
|
|
return id ? `/163/music/user/events/${id}` : '';
|
|
},
|
|
},
|
|
],
|
|
news: [
|
|
{
|
|
title: '排行榜',
|
|
docs: 'https://docs.rsshub.app/routes/new-media#wang-yi-xin-wen-pai-hang-bang',
|
|
},
|
|
],
|
|
renjian: [
|
|
{
|
|
title: '人间',
|
|
docs: 'https://docs.rsshub.app/routes/new-media#wang-yi-xin-wen-ren-jian',
|
|
source: ['/:category', '/'],
|
|
target: '/163/renjian/:category?',
|
|
},
|
|
],
|
|
'vip.open': [
|
|
{
|
|
title: '公开课 精品课程',
|
|
docs: 'https://docs.rsshub.app/routes/study#wang-yi-gong-kai-ke',
|
|
source: ['/'],
|
|
target: '/163/open/vip',
|
|
},
|
|
],
|
|
'wp.m': [
|
|
{
|
|
title: '今日关注',
|
|
docs: 'https://docs.rsshub.app/routes/new-media#wang-yi-xin-wen',
|
|
source: ['/163/html/newsapp/todayFocus/index.html', '/'],
|
|
target: '/163/today',
|
|
},
|
|
],
|
|
'y.music': [
|
|
{
|
|
title: '云音乐 - 用户歌单',
|
|
docs: 'https://docs.rsshub.app/routes/multimedia#wang-yi-yun-yin-yue',
|
|
source: '/m/user',
|
|
target: (params, url) => `/163/music/user/playlist/${new URL(url).searchParams.get('id')}`,
|
|
},
|
|
{
|
|
title: '云音乐 - 歌单歌曲',
|
|
docs: 'https://docs.rsshub.app/routes/multimedia#wang-yi-yun-yin-yue',
|
|
source: '/m/playlist',
|
|
target: (params, url) => `/163/music/playlist/${new URL(url).searchParams.get('id')}`,
|
|
},
|
|
{
|
|
title: '云音乐 - 歌手专辑',
|
|
docs: 'https://docs.rsshub.app/routes/multimedia#wang-yi-yun-yin-yue',
|
|
source: '/m/album',
|
|
target: (params, url) => `/163/music/artist/${new URL(url).searchParams.get('id')}`,
|
|
},
|
|
{
|
|
title: '云音乐 - 电台节目',
|
|
docs: 'https://docs.rsshub.app/routes/multimedia#wang-yi-yun-yin-yue',
|
|
source: ['/m/radio', '/m/djradio'],
|
|
target: (params, url) => `/163/music/djradio/${new URL(url).searchParams.get('id')}`,
|
|
},
|
|
{
|
|
title: '用户动态',
|
|
docs: 'https://docs.rsshub.app/routes/multimedia#wang-yi-yun-yin-yue-yong-hu-dong-tai',
|
|
},
|
|
],
|
|
},
|
|
};
|