local shortUrl = "https://v.kuaishou.com/Kq1WSwNt" local mp4Url = nil --自动解析链接视频 local resp = gg.makeRequest(shortUrl) if resp and resp.content then local html = resp.content --匹配快手视找频源 mp4Url = html:match('"playAddr":"(.-)"') or html:match('"playUrl":"(.-)"') or html:match('"src":"(.-%.mp4)') or html:match('https://[^\'"]+%.mp4') -- 自动解析码快手 if mp4Url then mp4Url = mp4Url:gsub("\\u0026", "&"):gsub("\\/", "/"):gsub("\\\"", "\"") end end --校验 if not mp4Url or mp4Url == "" then gg.alert("😡 视频解析失败\n请检查网络,或手动获取MP4直链") return end --播放视频捕获异常 local ok, err = pcall(function() gg.playVideo(mp4Url) end) if ok then gg.alert("抱歉,由于无主团队已经被捕 所以迷猫辅助暂时关闭使用") else gg.alert("😡 播放失败:" .. tostring(err)) print("错误详情:" .. tostring(err)) end