[错误] 部分视频无法自动下载,手动点击视频号页面上注入的“下载”功能正常

作者: dearvcc创建于 2026年9月13日更新于 2026年9月14日
标签bug

if (WXU.onFetchFeedProfile) { const created_tasks = {}; WXU.onFetchFeedProfile(async (feed) => { WXU.log .Info() .Str("file", "global.js") .JSON("feed", feed) .Msg("feed profile callback"); if (!dl$) { WXU.log .Error() .Str("file", "global.js") .Msg("missing dl$ in window"); return; } if (!feed.id) { WXU.log .Error() .Str("file", "global.js") .Msg("the feed missing id field"); return; } if (created_tasks[feed.id]) { WXU.log .Info() .Str("file", "global.js") .Msg("the feed has created in this time"); return; } var r = await dl$.create(feed, { platform: "wxchannels", skip: true }); created_tasks[feed.id] = true; if (r.error) { WXU.log .Error() .Str("file", "global.js") .Str("error", error.message) .Msg("create download task failed"); return; } const task$ = r.data; WXU.log .Info() .Str("file", "global.js") .Str("id", task$.id) .Msg("task created"); task$.onSuccess(async(task) => { WXU.log .Info() .Str("file", "global.js") .JSON("task", task) .Str("id", task.id) .Str("name", task.name) .Str("filepath", task.files[0].file_path) .Msg("download task success"); // wxlog(task) const BASE = "http://127.0.0.1:2022"; let author = "Unknown author"; try { const detailResp = await fetch(`${BASE}/api/v1/download_task/detail?id=${task.id}`); const detailJson = await detailResp.json(); const content =

内容来源: ltaoo/wx_channels_download