Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

批量下载文章,下载中途闪退 #20

Closed
chilam85 opened this issue Oct 31, 2023 · 4 comments
Closed

批量下载文章,下载中途闪退 #20

chilam85 opened this issue Oct 31, 2023 · 4 comments

Comments

@chilam85
Copy link

chilam85 commented Oct 31, 2023

拉代码跑了一下,看到了一个报错的点,不知道是不是它引发的

D:\sc\github\wechatDownload\node_modules\brotli\build\encode.js:3
1<process.argv.length?process.argv[1].replace(/\/g,"/"):"unknown-program");b.arguments=process.argv.slice(2);"undefined"!==typeof module&&(module.exports=b);process.on("uncaughtException",function(a){if(!(a instanceof y))throw a;});b.inspect=function(){return"[Emscripten Module object]"}}else if(x)b.print||(b.print=print),"undefined"!=typeof printErr&&(b.printErr=printErr),b.read="undefined"!=typeof read?read:function(){throw"no read() available (jsc?)";},b.readBinary=function(a){if("function"===

                                                                                ^

TypeError [Error]: Cannot read properties of undefined (reading 'title')
at Service.objToArticle (D:\sc\github\wechatDownload\out\main\service-478a4708.js:887:32)
at downList (D:\sc\github\wechatDownload\out\main\worker-2ab1927a.js:626:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async downList (D:\sc\github\wechatDownload\out\main\worker-2ab1927a.js:657:5)
at async downList (D:\sc\github\wechatDownload\out\main\worker-2ab1927a.js:657:5)
at async downList (D:\sc\github\wechatDownload\out\main\worker-2ab1927a.js:657:5)
at async downList (D:\sc\github\wechatDownload\out\main\worker-2ab1927a.js:657:5)
at async downList (D:\sc\github\wechatDownload\out\main\worker-2ab1927a.js:657:5)
at async batchDownloadFromWeb (D:\sc\github\wechatDownload\out\main\worker-2ab1927a.js:532:3)
at async MessagePort. (D:\sc\github\wechatDownload\out\main\worker-2ab1927a.js:81:7)

Node.js v18.16.1

@xiaoguyu
Copy link
Owner

xiaoguyu commented Nov 1, 2023

应该是下载的文章列表(articleArr变量)有问题
具体以安装包为准吧,安装包使用报错再说
跑源码的话,自行调试下吧

@chilam85
Copy link
Author

chilam85 commented Nov 2, 2023

感谢回复。今天自己调试了源码,发现作者如果发布的是图片或是类似说说的文字片段,是没有正文可供下载的。
具体对应数据结构上的 comm_msg_info['type']=3 图片, comm_msg_info['type']=1 说说;
此时数据没有 app_msg_ext_info 段。

用这个文章,把下载范围设置为2023-11-01号,可以重现问题。

@xiaoguyu
Copy link
Owner

xiaoguyu commented Nov 3, 2023

感谢回复。今天自己调试了源码,发现作者如果发布的是图片或是类似说说的文字片段,是没有正文可供下载的。 具体对应数据结构上的 comm_msg_info['type']=3 图片, comm_msg_info['type']=1 说说; 此时数据没有 app_msg_ext_info 段。

用这个文章,把下载范围设置为2023-11-01号,可以重现问题。

麻烦提供一下文章的链接,谢谢

@lpker
Copy link

lpker commented Feb 26, 2024

比如使用批量下载下载公众号“吾爱破解论坛”的文章,https://mp.weixin.qq.com/s/reoIGA19pVZBGz2ZKEySeA 碰到文字片段直接闪退,类似图片中第一条这样的
吾爱破解
,直接使用文章url“下载”能够下载成功,但批量下载就会闪退

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants