From 2af634ec887e65aebff95011aa49d3cdf5dc589f Mon Sep 17 00:00:00 2001 From: blackmatrix7 <27717518+blackmatrix7@users.noreply.github.com> Date: Fri, 20 Aug 2021 19:45:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=9F=A5=E4=B9=8E=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E8=A7=86=E9=A2=91=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8?= =?UTF-8?q?=E6=92=AD=E6=94=BE=E7=9A=84=E9=97=AE=E9=A2=98=20close=20#383?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/zhihu/zhihu_plus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/zhihu/zhihu_plus.js b/script/zhihu/zhihu_plus.js index f2f0ebd16..06d65ceb9 100644 --- a/script/zhihu/zhihu_plus.js +++ b/script/zhihu/zhihu_plus.js @@ -184,7 +184,7 @@ let magicJS = MagicJS(scriptName, "INFO"); // 修正由于JS number类型精度问题,导致JSON.parse精度丢失,引起视频无法自动播放的问题 try { if (element.hasOwnProperty("extra") && element["extra"].hasOwnProperty("type") && element["extra"]["type"] === "zvideo") { - let video_id = element["common_card"]["feed_content"]["video"]["customized_page_url"].match(/https?:\/\/www\.zhihu\.com\/[^?]*\?(videoID|content_id)=(\d*)/)[1]; + let video_id = element["common_card"]["feed_content"]["video"]["customized_page_url"].match(/https?:\/\/www\.zhihu\.com\/[^=]*=(\d*)/)[1]; element["common_card"]["feed_content"]["video"]["id"] = video_id; } } catch (err) {