Hotfix: mygalgame domain (#1216)

This commit is contained in:
SettingDust
2018-12-01 23:37:00 +08:00
committed by DIYgod
parent e5af8c9768
commit 3c1be2fc31
4 changed files with 11 additions and 8 deletions
+2
View File
@@ -83,6 +83,8 @@ RSSHub 是采用 MIT 许可的开源项目,使用完全免费。 但是随着
- [rsshub.js](https://github.com/SevenOutman/rsshub.js): JavaScript library for RSSHub
- [RSSHelper](https://greasyfork.org/zh-CN/scripts/374570-rsshelper): 可以发现 RSS 的 Tampermonkey 插件
## Author
**RSSHub** © [DIYgod](https://github.com/DIYgod), Released under the [MIT](./LICENSE) License.<br>
+2 -2
View File
@@ -1066,9 +1066,9 @@ GitHub 官方也提供了一些 RSS:
<route name="小组话题" author="SettingDust" example="/bangumi/group/boring" path="/bangumi/group/:id" :paramsDesc="['小组 id, 在小组页面地址栏查看']"/>
### 忧郁的弟弟
### 忧郁的 loli
<route name="文章" author="DIYgod" example="/mygalgame" path="/mygalgame"/>
<route name="文章" author="DIYgod" example="/mmgal" path="/mmgal"/>
### 看漫画
+3 -2
View File
@@ -525,8 +525,9 @@ router.get('/weatheralarm', require('./routes/weatheralarm'));
// Gitlab
router.get('/gitlab/explore/:type', require('./routes/gitlab/explore'));
// 忧郁的弟弟
router.get('/mygalgame', require('./routes/galgame/mygalgame'));
// 忧郁的loli 换了域名,向下兼容
router.get('/mygalgame', require('./routes/galgame/mmgal'));
router.get('/mmgal', require('./routes/galgame/mmgal'));
// 大连工业大学
router.get('/dpu/jiaowu/news/:type?', require('./routes/universities/dpu/jiaowu/news'));
@@ -4,9 +4,9 @@ const cheerio = require('cheerio');
module.exports = async (ctx) => {
const res = await axios({
method: 'get',
url: 'https://www.mygalgame.com/',
url: 'https://www.mmgal.com/',
header: {
Referer: 'https://www.mygalgame.com/',
Referer: 'https://www.mmgal.com/',
},
});
@@ -17,8 +17,8 @@ module.exports = async (ctx) => {
ctx.state.data = {
title: $('title').text(),
link: 'https://www.mygalgame.com/',
description: '忧郁的弟弟 - Galgame资源发布站',
link: 'https://www.mmgal.com/',
description: '忧郁的loli - Galgame资源发布站',
item:
list &&
list