-
Notifications
You must be signed in to change notification settings - Fork 622
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
判断是否下载过逻辑是不是有问题? #116
Comments
这样改下载中断的也会当作正常下载的吧 |
都可以 在下载的地方做个异常捕捉 检测到异常清空或者删除中断的文件也行 |
@liupeng328 把url存下来应该可行。我现在就就是保存url来判断了。试了一个月暂时没有问题 |
@icesunx 代码发我一份吧,您肯定分析过这个代码了吧?您有没有加注释? |
我这里再本地获取到文件我就判断已存在了,不会去继续下载 |
这几天我看了下python的语法,解决了这个问题:
另外加我qq群:317896269 |
我有个定时任务每天定时跑一遍这个脚本.发现绝大部分已经下载过的视频仍然需要重新下载一遍.看源码debug发现,getRemoteSize和getLocalSize基本大小都不匹配. 换成直接判断本地是否存在同名文件且size > 0 可以解决这个问题吗?
The text was updated successfully, but these errors were encountered: