qjfoidnh / BaiduPCS-Go

iikira/BaiduPCS-Go原版基础上集成了分享链接/秒传链接转存功能
Apache License 2.0
2.9k stars 440 forks source link

重试次数 #291

Closed s0trcwd1 closed 1 year ago

s0trcwd1 commented 1 year ago

没找到设置, 能添加重试次数自定义设置吗? 下面这个重试了一次,上传成功. 有时候上传电视剧,少一集,不知道是不是超过次数了

[0] 提示: 当前上传单个文件最大并发量为: 4, 最大同时上传文件数为: 4 [1] 加入上传队列: S04.EP07.HD1080p.mp4 [1] 准备上传: S04.EP07.HD1080p.mp4 [1] 获取文件列表错误, 获取目录下的文件列表: 网络错误, Get "https://pcs.baidu.com/rest/2.0/pcs/file?app_id=266719&by=name&limit=0-2147483647&method=list&order=asc&path=%2Fhua%2Fdl": net/http: TLS handshake timeout, 重试 1/3 [1] 准备上传: /mnt/blockstorage/data/pikpak/S04.EP07.HD1080p.mp4 [1] 检测秒传中, 请稍候... [1] 秒传失败, 开始上传文件...

[1] ↑ 994.10MB/994.10MB 0B/s in 5m6s ................... [1] 上传文件成功, 保存到网盘路径: /hua/dl/S04.EP07.HD1080p.mp4

s0trcwd1 commented 1 year ago

下午遇到了一次, 18集和20集两集上传成功,19集 重试3次,上传失败,就上传下一集20 #################################### [0] 提示: 当前上传单个文件最大并发量为: 4, 最大同时上传文件数为: 4 [1] 加入上传队列: S04.EP18.HD1080p.mp4 [1] 准备上传: S04.EP18.HD1080p.mp4 [1] 检测秒传中, 请稍候... [1] 秒传失败, 开始上传文件...

[1] ↑ 1.04GB/1.04GB 0B/s in 4m36s .................... [1] 上传文件成功, 保存到网盘路径: /hua/dl/S04.EP18.HD1080p.mp4

上传结束, 时间: 5m6.329s, 总大小: 1.040216GB Transferred: 1.038 GiB / 1.038 GiB, 100%, 4.579 MiB/s, ETA 0s Transferred: 1 / 1, 100% Elapsed time: 5m49.3s

[0] 提示: 当前上传单个文件最大并发量为: 4, 最大同时上传文件数为: 4 [1] 加入上传队列: S04.EP19.HD1080p.mp4 [1] 准备上传: S04.EP19.HD1080p.mp4 [1] 获取文件列表错误, 获取目录下的文件列表: 网络错误, Get "https://pcs.baidu.com/rest/2.0/pcs/file?app_id=266719&by=name&limit=0-2147483647&method=list&order=asc&path=%2Fhua%2Fdl": net/http: TLS handshake timeout, 重试 1/3 [1] 准备上传: /mnt/blockstorage/data/pikpak/S04.EP19.HD1080p.mp4 [1] 获取文件列表错误, 获取目录下的文件列表: 网络错误, Get "https://pcs.baidu.com/rest/2.0/pcs/file?app_id=266719&by=name&limit=0-2147483647&method=list&order=asc&path=%2Fhua%2Fdl": net/http: TLS handshake timeout, 重试 2/3 [1] 准备上传: /mnt/blockstorage/data/pikpak/S04.EP19.HD1080p.mp4 [1] 获取文件列表错误, 获取目录下的文件列表: 网络错误, Get "https://pcs.baidu.com/rest/2.0/pcs/file?app_id=266719&by=name&limit=0-2147483647&method=list&order=asc&path=%2Fhua%2Fdl": net/http: TLS handshake timeout, 重试 3/3 [1] 准备上传: /mnt/blockstorage/data/pikpak/S04.EP19.HD1080p.mp4 [1] 获取文件列表错误, 获取目录下的文件列表: 网络错误, Get "https://pcs.baidu.com/rest/2.0/pcs/file?app_id=266719&by=name&limit=0-2147483647&method=list&order=asc&path=%2Fhua%2Fdl": net/http: timeout awaiting response headers 上传结束, 时间: 1m56.297s, 总大小: 0B 以下文件上传失败: 1 /mnt/blockstorage/data/pikpak/S04.EP19.HD1080p.mp4
Transferred: 1.043 GiB / 1.043 GiB, 100%, 3.654 MiB/s, ETA 0s Transferred: 1 / 1, 100% Elapsed time: 5m27.6s

[0] 提示: 当前上传单个文件最大并发量为: 4, 最大同时上传文件数为: 4 [1] 加入上传队列: S04.EP20.HD1080p.mp4 [1] 准备上传: S04.EP20.HD1080p.mp4 [1] 检测秒传中, 请稍候... [1] 秒传失败, 开始上传文件...

[1] ↑ 1.04GB/1.04GB 0B/s in 3m27s ................... [1] 上传文件成功, 保存到网盘路径: /hua/dl/S04.EP20.HD1080p.mp4

Ted-bug commented 1 year ago

可以自定义次数的,看一下upload help

pongfcnkl commented 1 year ago

--retry 99999999

s0trcwd1 commented 1 year ago

我以后多添加次数;今天上传电视剧少了一集,有一集大小为0.昨天少了二集.