Skip to content

Commit

Permalink
Enhancement: zimuzu (DIYgod#1225)
Browse files Browse the repository at this point in the history
  • Loading branch information
xyqfer authored and DIYgod committed Dec 4, 2018
1 parent efefa24 commit 04d192d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ GitHub 官方也提供了一些 RSS:

:::

<route name="影视" author="DIYgod" example="/zimuzu/resource/37031" path="/zimuzu/resource/:id" :paramsDesc="['影视 id,对应影视的 URL 中找到']"/>
<route name="影视" author="DIYgod" example="/zimuzu/resource/37031" path="/zimuzu/resource/:id?" :paramsDesc="['影视 id,对应影视的 URL 中找到,为空时输出最近更新']"/>

### Sankaku Complex

Expand Down
2 changes: 1 addition & 1 deletion router.js
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ router.get('/cpu/jwc', require('./routes/cpu/jwc'));
router.get('/cpu/yjsy', require('./routes/cpu/yjsy'));

// 字幕组
router.get('/zimuzu/resource/:id', require('./routes/zimuzu/resource'));
router.get('/zimuzu/resource/:id?', require('./routes/zimuzu/resource'));

// 虎嗅
router.get('/huxiu/tag/:id', require('./routes/huxiu/tag'));
Expand Down
2 changes: 1 addition & 1 deletion routes/zimuzu/resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const parser = new Parser({
});

module.exports = async (ctx) => {
const id = ctx.params.id;
const { id = 0 } = ctx.params;
const feed = await parser.parseURL(`http://diaodiaode.me/rss/feed/${id}`);
feed.items.map((item) => {
item.link = null;
Expand Down

0 comments on commit 04d192d

Please sign in to comment.