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
+3 -3
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字幕侠`,