fix(zimuxia-portfollo): `$.reverse` is removed (#8047)

This commit is contained in:
Trim21 2021-08-20 14:04:53 +08:00 committed by GitHub
parent a9ca8844d4
commit 036ba8c06a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -17,8 +17,9 @@ module.exports = async (ctx) => {
.filter(function () {
return $(this).attr('href').substr(0, 7) === 'magnet:';
})
.toArray()
.reverse()
.map((_, item) => {
.map((item) => {
item = $(item);
return {
@ -28,8 +29,7 @@ module.exports = async (ctx) => {
enclosure_url: item.attr('href'),
enclosure_type: 'application/x-bittorrent',
};
})
.get();
});
ctx.state.data = {
title: `${$('.content-page-title').text()} - FIX字幕侠`,