From f0c7d1c2ce2633632645113e314ff4cdba340544 Mon Sep 17 00:00:00 2001 From: Ivan Paramonau Date: Tue, 9 Jul 2024 16:09:45 -0400 Subject: [PATCH] media-detector: ignore /media/ in WSJ articles --- plugins/meta/media-detector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/meta/media-detector.js b/plugins/meta/media-detector.js index 25d502f0f..69c9a39f2 100644 --- a/plugins/meta/media-detector.js +++ b/plugins/meta/media-detector.js @@ -22,7 +22,7 @@ export default { var has_thumbnail = (meta.og && meta.og.image) || (meta.twitter && meta.twitter.image); if (has_thumbnail && meta.og - && !/\/(?:videos?|media|player|embed)\//i.test(url) && !/https?:\/\/videos?\./i.test(url) + && !/\/(?:videos?|player|embed)\//i.test(url) && !/https?:\/\/videos?\./i.test(url) && (/article|blog|news|post|noticia/i.test(url) || (/\/(\d{4})\/(\d{2})\/(\d{2})/).test(url) || /article|post/i.test(meta.og.type) && (!meta.ld || meta.article)