From f019f9477bfae4456dc7fe492a3ff55463505ad0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=89=E5=87=89?= Date: Thu, 13 Dec 2018 11:24:27 +0800 Subject: [PATCH] Hotfix: jianshu video (#1277) --- routes/jianshu/utils.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/routes/jianshu/utils.js b/routes/jianshu/utils.js index 577d3143ee..9b6d0de868 100644 --- a/routes/jianshu/utils.js +++ b/routes/jianshu/utils.js @@ -28,6 +28,17 @@ async function load(link) { }); // 去除样式 $('.image-container, .image-container-fill').removeAttr('style'); + // 处理视频 + $('.video-package').each((index, elem) => { + const $item = $(elem); + const desc = $item.find('.video-description').html(); + const url = $item.attr('data-video-url'); + + $item.html(` +

${desc}

+ + `); + }); // 提取内容 const description = $('.show-content-free').html();