fix(route): mp4er change domain and refactor to V2 (#9919)

This commit is contained in:
Fatpandac
2022-06-08 19:57:31 +08:00
committed by GitHub
parent 8578738c65
commit 081ab4f017
5 changed files with 22 additions and 3 deletions
+2 -2
View File
@@ -3654,8 +3654,8 @@ router.get('/voa/:language/:channel?', lazyloadRouteHandler('./routes/voa/index'
router.get('/6park/:id?/:type?/:keyword?', lazyloadRouteHandler('./routes/6park/index'));
// 哔嘀影视
router.get('/mp4er/:type?/:caty?/:area?/:year?/:order?', lazyloadRouteHandler('./routes/mp4er/index'));
router.get('/bde4/:type?/:caty?/:area?/:year?/:order?', lazyloadRouteHandler('./routes/mp4er/index'));
// router.get('/mp4er/:type?/:caty?/:area?/:year?/:order?', lazyloadRouteHandler('./routes/mp4er/index'));
// router.get('/bde4/:type?/:caty?/:area?/:year?/:order?', lazyloadRouteHandler('./routes/mp4er/index'));
// 上海证券交易所
router.get('/sse/sserules/:slug?', lazyloadRouteHandler('./routes/sse/sserules'));
@@ -8,7 +8,7 @@ module.exports = async (ctx) => {
const year = ctx.params.year || 'all';
const order = ctx.params.order || '0';
const rootUrl = 'https://www.mp4er.com';
const rootUrl = 'https://www.52bdys.com';
const currentUrl = `${rootUrl}/s/${caty}?${type === 'all' ? '' : '&type=' + type}${area === 'all' ? '' : '&area=' + area}${year === 'all' ? '' : '&year=' + year}&order=${order}`;
const response = await got({
method: 'get',
+3
View File
@@ -0,0 +1,3 @@
module.exports = {
'/:type?/:caty?/:area?/:year?/:order?': ['nczitzk'],
};
+13
View File
@@ -0,0 +1,13 @@
module.exports = {
'52bdys.com': {
_name: '哔嘀影视',
'.': [
{
title: '首页',
docs: 'https://docs.rsshub.app/multimedia.html#bi-di-ying-shi',
source: ['/'],
target: '/mp4er/:type?/:caty?/:area?/:year?/:order?',
},
],
},
};
+3
View File
@@ -0,0 +1,3 @@
module.exports = function (router) {
router.get('/:type?/:caty?/:area?/:year?/:order?', require('./index'));
};