fix: reverse cartoonmad item order (#1613)

This commit is contained in:
Maecenas Li 2019-02-25 11:37:54 +08:00 committed by DIYgod
parent 59447e4b89
commit bdfd89aa56
1 changed files with 3 additions and 5 deletions

View File

@ -12,13 +12,11 @@ const getChapters = ($) =>
return {
link: resolve('https://www.cartoonmad.com/', a.attr('href')),
title: a.text(),
num: a
.parent()
.find('font')
.text(),
num: a.next('font').text(),
};
})
.toArray();
.toArray()
.reverse();
module.exports = async (ctx) => {
const { id } = ctx.params;