diff --git a/docs/multimedia.md b/docs/multimedia.md index cdc5e3a9c8..a8bbbe9b42 100644 --- a/docs/multimedia.md +++ b/docs/multimedia.md @@ -687,7 +687,7 @@ pageClass: routes ### 首页 - + #### 资源分类 diff --git a/lib/router.js b/lib/router.js index 24d9c1394c..19356da1db 100644 --- a/lib/router.js +++ b/lib/router.js @@ -3850,7 +3850,8 @@ router.get('/voa/:language/:channel?', require('./routes/voa/index')); router.get('/6park/:id?/:type?/:keyword?', require('./routes/6park/index')); // 哔嘀影视 -router.get('/bde4/:type?/:caty?/:area?/:year?/:order?', require('./routes/bde4/index')); +router.get('/mp4er/:type?/:caty?/:area?/:year?/:order?', require('./routes/mp4er/index')); +router.get('/bde4/:type?/:caty?/:area?/:year?/:order?', require('./routes/mp4er/index')); // 上海证券交易所 router.get('/sse/sserules/:slug?', require('./routes/sse/sserules')); diff --git a/lib/routes/bde4/index.js b/lib/routes/mp4er/index.js similarity index 90% rename from lib/routes/bde4/index.js rename to lib/routes/mp4er/index.js index a1b92da7f6..2db222e984 100644 --- a/lib/routes/bde4/index.js +++ b/lib/routes/mp4er/index.js @@ -8,7 +8,7 @@ module.exports = async (ctx) => { const year = ctx.params.year || 'all'; const order = ctx.params.order || '0'; - const rootUrl = 'https://bde4.icu'; + const rootUrl = 'https://www.mp4er.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', @@ -28,7 +28,7 @@ module.exports = async (ctx) => { return { title: item.attr('title'), link: `${rootUrl}${link[0]}`, - pubDate: new Date(item.parent().find('.meta span').text()).toUTCString(), + pubDate: Date.parse(item.parent().find('.meta span').text()), }; }) .get(); @@ -61,7 +61,7 @@ module.exports = async (ctx) => { const torrents = content('#torrent-list .list'); item.description = content('.info0').html() + `
下载地址:${downloadLinks}
` + `${torrents.html() ? `
种子列表:${torrents.html()}
` : ''}`; - item.enclosure_url = torrents.html() ? torrents.find('a.header').last().attr('href') : downloadResponse.data.pop().url; + item.enclosure_url = torrents.html() ? `${rootUrl}${torrents.find('a.header').last().attr('href')}` : downloadResponse.data.pop().url; item.enclosure_type = 'application/x-bittorrent'; return item;