|
|
@ -338,22 +338,20 @@ function getHistory(){ |
|
|
|
let h = []; |
|
|
|
let h = []; |
|
|
|
let items = JSON.parse(fetch('hiker://history')).filter(v=> v.type!="网页浏览" && JSON.parse(v.params).title==MY_RULE.title).slice(0, 3); |
|
|
|
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=>{ |
|
|
|
items.forEach(item=>{ |
|
|
|
//log(JSON.parse(item.params).params);
|
|
|
|
try{ |
|
|
|
let extra = JSON.parse(JSON.parse(item.params).params) || {}; |
|
|
|
let extra = JSON.parse(JSON.parse(item.params).params) || {}; |
|
|
|
extra["cls"] = "historylist"; |
|
|
|
extra["cls"] = "historylist"; |
|
|
|
log(extra); |
|
|
|
h.push({ |
|
|
|
//log($.type(extra));
|
|
|
|
title: item.title, |
|
|
|
//let e = Object.assign({"cls": "historylist"}, extra);
|
|
|
|
url: item.ruleBaseUrl + '@rule=' + JSON.parse(item.params).find_rule, |
|
|
|
//e["cls"] = "historylist";
|
|
|
|
pic_url: item.picUrl, |
|
|
|
|
|
|
|
desc: item.lastClick?item.lastClick.split('@@')[0]:"足迹:无", |
|
|
|
h.push({ |
|
|
|
col_type: "movie_3", |
|
|
|
title: item.title, |
|
|
|
extra: extra |
|
|
|
url: item.ruleBaseUrl + '@rule=' + JSON.parse(item.params).find_rule, |
|
|
|
}); |
|
|
|
pic_url: item.picUrl, |
|
|
|
}catch(e){ |
|
|
|
desc: item.lastClick?item.lastClick.split('@@')[0]:"足迹:无", |
|
|
|
log('加载观看记录异常>'+e.message + " 错误行#" + e.lineNumber); |
|
|
|
col_type: "movie_3", |
|
|
|
} |
|
|
|
extra: extra |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
return h; |
|
|
|
return h; |
|
|
|
} |
|
|
|
} |
|
|
|