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 ### 播放列表 - + ## 网易云音乐 ### 歌单歌曲 - + ### 用户歌单 - + ### 歌手专辑 - + ### 电台节目 - + ## 西瓜视频