Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bypy对大文件下载的支持不友善啊~ #272

Closed
QGB opened this issue Jul 20, 2016 · 2 comments
Closed

bypy对大文件下载的支持不友善啊~ #272

QGB opened this issue Jul 20, 2016 · 2 comments

Comments

@QGB
Copy link

QGB commented Jul 20, 2016

Loading Hash Cache File 'D:\Program Files\Git.bypy\bypy.hashcache.json'...
Hash Cache File 'D:\Program Files\Git.bypy\bypy.hashcache.json' not found, no caching
[23:12:45] Local file and remote file sizes DON'T match
[00:41:56] Error accessing 'https://d.pcs.baidu.com/rest/2.0/pcs/file'
[00:41:56] Function: __downchunks_act
[00:41:56] Website parameters: {u'path': u'/apps/bypy/Server2012R2.GHO', u'method': u'download'}
[00:41:56] Waiting 10 seconds before retrying...
[00:42:06] Request Try #2 / 5
[00:42:23] Error accessing 'https://d.pcs.baidu.com/rest/2.0/pcs/file'
[00:42:23] Function: __downchunks_act
[00:42:23] Website parameters: {u'path': u'/apps/bypy/Server2012R2.GHO', u'method': u'download'}
[00:42:23] Waiting 20 seconds before retrying...
[00:42:43] Request Try #3 / 5
[00:43:00] Error accessing 'https://d.pcs.baidu.com/rest/2.0/pcs/file'
[00:43:00] Function: __downchunks_act
[00:43:00] Website parameters: {u'path': u'/apps/bypy/Server2012R2.GHO', u'method': u'download'}
[00:43:00] Waiting 30 seconds before retrying...
[00:43:30] Request Try #4 / 5
[00:43:48] Error accessing 'https://d.pcs.baidu.com/rest/2.0/pcs/file'
[00:43:48] Function: __downchunks_act
[00:43:48] Website parameters: {u'path': u'/apps/bypy/Server2012R2.GHO', u'method': u'download'}
[00:43:48] Waiting 40 seconds before retrying...
[00:44:28] Request Try #5 / 5
[00:44:45] Error accessing 'https://d.pcs.baidu.com/rest/2.0/pcs/file'
[00:44:45] Function: __downchunks_act
[00:44:45] Website parameters: {u'path': u'/apps/bypy/Server2012R2.GHO', u'method': u'download'}
[00:44:45] Maximum number (5) of tries failed.

可以加个大文件断点续传功能吗,下次打开继续下载。。。

@jtliaw
Copy link

jtliaw commented Jul 21, 2016

本来就是断点续传的!你的错误报告只是连接不到百度服务器!
可以使用aria2下载!(电脑先安装aria2)
bypy.py downdir / --downloader aria2

如果不使用aria2下载,可以修改(bypy.py)
找到:
dest="retry", default=5
改为:
dest="retry", default=99

@houtianze
Copy link
Owner

感谢反馈和 @jtliaw 的回答。

是的,默认就是断点续传,重新运行bypy就回接着下载。

重试值也可以通过--retry命令行参数来修改。

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

No branches or pull requests

3 participants