diff --git a/lib/v2/coolapk/utils.js b/lib/v2/coolapk/utils.js index fd4e26133..ac3ec3442 100644 --- a/lib/v2/coolapk/utils.js +++ b/lib/v2/coolapk/utils.js @@ -57,9 +57,7 @@ const parseTuwenFromRaw = (raw) => const parseDynamic = async (item, ctx) => { const pubDate = parseDate(item.lastupdate, 'X'); - if (item.entityType === 'sponsorCard') { - return; - } else if (item.shareUrl === undefined) { + if (item.entityType === 'sponsorCard' || item.shareUrl === undefined) { return; } const itemUrl = item.shareUrl.split('?')[0]; @@ -73,6 +71,7 @@ const parseDynamic = async (item, ctx) => { case 9: case 10: case 11: + case 13: // feedType: video (external) case 15: case 17: case 20: { @@ -92,7 +91,7 @@ const parseDynamic = async (item, ctx) => { description = `
` + item.message + `
` + picArr.join(''); } const $ = cheerio.load('