-
Notifications
You must be signed in to change notification settings - Fork 9
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
重新下载“下载失败的文件"再次失败好像不会记录这次失败了 #22
Comments
找AI写了个临时解决方案,从日志中提取失败内容储存为failed-download.txt,再重新运行asmr-downloader进行失败文件下载 import re log_file_path = 'path_to_your_log_file.log' unique_results = {} error_pattern = re.compile(r'下载失败') with open(log_file_path, 'r', encoding='utf-8') as file: for i in range(len(lines) - 1): with open(output_file_path, 'w', encoding='utf-8') as file: print(f'提取的唯一内容已保存到文件: {output_file_path}') |
我看看哈 |
谢谢你的测试和反馈 😁我会跟进一下的 |
重新下载上次失败的文件,再次下载失败就直接删除了记录,也没重新下载和记录失败
因为large.kiko-play-niptan.one这个域名的文件会出现下载频率限制,导致后面所有这个域名的文件全部下载失败,而处理下载失败文件的时候还在频率限制内所以继续失败,等下载结束时失败记录就被全清了
The text was updated successfully, but these errors were encountered: