Closed JingMatrix closed 2 years ago
使用 aria2c
下载正常,由此可见是代码问题。
老铁,可能代码不对,用关键字参数
不是的,是代码的 _core_download_file
实现有问题。使用 'aria2c' 没有问题的话,说明代码运行到
https://github.com/foyoux/aligo/blob/main/aligo/core/Download.py#L77
是没有问题的。
而且我自己的代码在两个月前是可以运行的,我感觉是 ali 的 http 下载改变什么吧。
有没有可能 ali 突然不支持分段下载了?
https://github.com/foyoux/aligo/blob/main/aligo/core/Download.py#L95
代码之前OK,现在不行了,对吗?
前几次改过http访问的代码,可能是那次改坏的,晚上处理。
是的,之前我都不需要加 try .. catch 的,今天还以为 ali 不支持直接下载了,所以加了个转存代码。
已修复此问题
操作系统信息
The outout of
uname -a
:错误描述
无法直接下载分享文件,即使转存之后也不行。 Traceback:
我的代码片段如下: