From 514825e8d44789da374cefef1971698b28966ab7 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sun, 9 Jun 2024 20:27:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJuying.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJuying.js | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/SrcJuying.js b/SrcJuying.js index 5e3a1a7c..71bfd3d5 100644 --- a/SrcJuying.js +++ b/SrcJuying.js @@ -859,26 +859,18 @@ function yiji() { } if(getItem('historyEnable')=='1'){ - let h = []; - h.push({ + d.push({ title: '\t观看记录\t\t\t', url: 'hiker://empty', pic_url: 'https://hikerfans.com/tubiao/red/40.png', - col_type: 'avatar' + col_type: 'avatar', + extra: { + id: "historyid" + } }); - let items = JSON.parse(fetch('hiker://history')).filter(v=> v.type!="网页浏览" && JSON.parse(v.params).title==MY_RULE.title).slice(0, 3); - items.forEach(item=>{ - h.push({ - title: item.title, - url: item.ruleBaseUrl + '@rule=' + JSON.parse(item.params).find_rule, - pic_url: item.picUrl, - desc: item.lastClick?item.lastClick.split('@@')[0]:"", - col_type: "movie_3", - extra: JSON.parse(item.params).params - }); - }) - addItemBefore("rousoubang", h); + let items = historyList(); + d = d.concat(items); } let resoufile = "hiker://files/rules/Src/Juying/resou.json";