Update index.js

This commit is contained in:
nguyentrungthat 2026-04-13 07:48:28 +07:00
parent dc80c2c0c5
commit 14cb578150
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ async function scrapeWithPuppeteer(url, name) {
const daysDiff = (Date.now() - date.getTime()) / (1000 * 60 * 60 * 24);
if (daysDiff > 7) return;
const linkEl = node.querySelector("div.su-media__image a");
const linkEl = node.querySelector("div.su-image a");
if (linkEl) {
payload.link_detail = linkEl.href;
const match = linkEl.href.match(/\/itm\/(\d+)/);