mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-03 02:28:23 +08:00
38 lines
1.4 KiB
JavaScript
38 lines
1.4 KiB
JavaScript
module.exports = {
|
|
'mixcloud.com': {
|
|
_name: 'Mixcloud',
|
|
www: [
|
|
{
|
|
title: 'User',
|
|
docs: 'https://docs.rsshub.app/routes/multimedia#mixcloud',
|
|
source: ['/:username/:type?'],
|
|
target: (params) => {
|
|
if (params.username !== undefined) {
|
|
if (['stream', 'uploads', 'favorites', 'listens'].includes(params.type)) {
|
|
return `/mixcloud/${params.username}/${params.type}`;
|
|
} else if (params.type === undefined) {
|
|
return `/mixcloud/${params.username}/uploads`;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
],
|
|
'.': [
|
|
{
|
|
title: 'User',
|
|
docs: 'https://docs.rsshub.app/routes/multimedia#mixcloud',
|
|
source: ['/:username/:type?'],
|
|
target: (params) => {
|
|
if (params.username !== undefined) {
|
|
if (['stream', 'uploads', 'favorites', 'listens'].includes(params.type)) {
|
|
return `/mixcloud/${params.username}/${params.type}`;
|
|
} else if (params.type === undefined) {
|
|
return `/mixcloud/${params.username}/uploads`;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
],
|
|
},
|
|
};
|