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) {