yemingfeng 4 月之前
父節點
當前提交
4a334e15f5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      js/youtube/youtubev1.js

+ 1 - 1
js/youtube/youtubev1.js

@@ -291,7 +291,7 @@ detail = async (url, requestId, platform) => {
             "channelID": originVideoDetails["channelId"],
             "recommendInfo": recommendInfo,
             "channelURL": `https://www.youtube.com/channel/${originVideoDetails["channelId"]}`,
-            "videoId": originVideoDetails["videoId"]
+            "videoId": url.replace('https://www.youtube.com/watch?v=', '')
         }
         const ret = {
             "code": 200,