Files
RSSHub/lib/v2/radio/radar.js
T
Ethan ShenandTony d1b4a05105 feat(route): add 云听专辑 & 直播 (#10926)
* feat(route): add 云听专辑 & 直播

* fix: wrong enclosure_url

* update lib/v2/radio/album.js

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* update lib/v2/radio/album.js

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* update lib/v2/radio/album.js

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* update lib/v2/radio/index.js
2022-09-29 21:42:58 +08:00

26 lines
1.0 KiB
JavaScript

module.exports = {
'radio.cn': {
_name: '云听',
'.': [
{
title: '专辑',
docs: 'https://docs.rsshub.app/multimedia.html#yun-ting-zhuan-ji',
source: ['/pc-portal/sanji/detail.html', '/share/albumDetail', '/'],
target: (params, url) => `/radio/album/${new URL(url).searchParams.get('columnId')}`,
},
{
title: '节目',
docs: 'https://docs.rsshub.app/multimedia.html#yun-ting-jie-mu',
source: ['/pc-portal/sanji/detail.html', '/share/albumDetail', '/'],
target: (params, url) => `/radio/${new URL(url).searchParams.get('columnId')}`,
},
{
title: '直播',
docs: 'https://docs.rsshub.app/multimedia.html#yun-ting-zhi-bo',
source: ['/pc-portal/sanji/zhibo_2.html', '/'],
target: (params, url) => `/radio/zhibo/${new URL(url).searchParams.get('name')}`,
},
],
},
};