This commit is contained in:
qist 2024-11-23 13:02:51 +08:00
parent a31248ea26
commit 407eb1e637
2 changed files with 4 additions and 2 deletions

View File

@ -62,7 +62,8 @@ var rule = {
let url = pd(it, "div.result_item_v&&data-id");
let img = pd(it, ".figure_pic&&src");
let fromTag = pdfh(it, ".result_source&&Text");
if (fromTag.match(/腾讯/) && shortText) {
let markAlt = pd(it, ".mark_v img&&alt");
if (fromTag.match(/腾讯/) && shortText && !markAlt.match(/预告/)) {
d.push({
title: longText.split(shortText)[0],
img: img,

View File

@ -40,7 +40,8 @@ var rule = {
let url = pd(it, "div.result_item_v&&data-id");
let img = pd(it, ".figure_pic&&src");
let fromTag = pdfh(it, ".result_source&&Text");
if (fromTag.match(/腾讯/) && shortText) {
let markAlt = pd(it, ".mark_v img&&alt");
if (fromTag.match(/腾讯/) && shortText && !markAlt.match(/预告/)) {
d.push({
title: longText.split(shortText)[0],
img: img,