From 508a47a5068f9f28977cc0e0d5fa8fbff4cb763c Mon Sep 17 00:00:00 2001 From: YsMox <582801187@qq.com> Date: Mon, 15 Feb 2021 11:11:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20[radar]=20add=20=E7=BD=91=E6=98=93?= =?UTF-8?q?=E4=BA=91=E9=9F=B3=E4=B9=90/=E8=85=BE=E8=AE=AF=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E8=A7=84=E5=88=99=20(#6922)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/radar-rules.js | 49 +++++++++++++++++++++++++++++++++++++++++++ docs/multimedia.md | 10 ++++----- 2 files changed, 54 insertions(+), 5 deletions(-) diff --git a/assets/radar-rules.js b/assets/radar-rules.js index 654c9c392..b28a6cc78 100644 --- a/assets/radar-rules.js +++ b/assets/radar-rules.js @@ -1156,6 +1156,44 @@ target: '/open163/latest', }, ], + music: [ + { + title: '云音乐 - 用户歌单', + docs: 'https://docs.rsshub.app/multimedia.html#wang-yi-yun-yin-yue', + source: '/', + target: (params, url) => { + const id = new URL(url).hash.match(/home\?id=(.*)/)[1]; + return id ? `/ncm/user/playlist/${id}` : ''; + } + }, + { + title: '云音乐 - 歌单歌曲', + docs: 'https://docs.rsshub.app/multimedia.html#wang-yi-yun-yin-yue', + source: '/', + target: (params, url) => { + const id = new URL(url).hash.match(/playlist\?id=(.*)/)[1]; + return id ? `/ncm/playlist/${id}` : ''; + } + }, + { + title: '云音乐 - 歌手专辑', + docs: 'https://docs.rsshub.app/multimedia.html#wang-yi-yun-yin-yue', + source: '/', + target: (params, url) => { + const id = new URL(url).hash.match(/album\?id=(.*)/)[1]; + return id ? `/ncm/artist/${id}` : ''; + } + }, + { + title: '云音乐 - 电台节目', + docs: 'https://docs.rsshub.app/multimedia.html#wang-yi-yun-yin-yue', + source: '/', + target: (params, url) => { + const id = new URL(url).hash.match(/djradio\?id=(.*)/)[1]; + return id ? `/ncm/djradio/${id}` : ''; + } + }, + ], }, 'suzhou.gov.cn': { _name: '苏州市政府', @@ -1935,6 +1973,17 @@ }, }, ], + v: [ + { + title: '视频 - 播放列表', + docs: 'https://docs.rsshub.app/multimedia.html#teng-xun-shi-pin', + source: '/detail/:type/:id', + target: (params) => { + const id = params.id.match('(.*).html')[1]; + return id ? `/tencentvideo/playlist/${id}` : ''; + } + }, + ] }, 'javbus.com': { _name: 'JavBus', diff --git a/docs/multimedia.md b/docs/multimedia.md index 24001bf59..bcf9144b7 100644 --- a/docs/multimedia.md +++ b/docs/multimedia.md @@ -894,25 +894,25 @@ pageClass: routes ### 播放列表 - + ## 网易云音乐 ### 歌单歌曲 - + ### 用户歌单 - + ### 歌手专辑 - + ### 电台节目 - + ## 西瓜视频