fix(zimuxia-portfollo): `$.reverse` is removed (#8047)
This commit is contained in:
parent
a9ca8844d4
commit
036ba8c06a
|
|
@ -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字幕侠`,
|
||||
|
|
|
|||
Loading…
Reference in New Issue