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

fix: 失败的种子不会再次下载,也没有手动重试操作,每次要删数据库,挺麻烦的。 #818

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

snowlocked
Copy link

有时候因网络等原因导致某些种子下载失败了,但还是往数据库添加已下载的记录,导致重新获取时不会对该种子再次重新下载。
image

当我把数据库对应数据删除后,重新获取该种子是可以下载的。
image

这里打算把下载失败的种子不入库,待下次下载成功才入库,又或者看看能不能改成对下载失败的种子可以提供一个手动检测或定时检测的机制来下载这批失败的种子。

Copy link

vercel bot commented Jul 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
auto-bangumi ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 25, 2024 11:18am

@shininome
Copy link
Contributor

没看出改动的影响,感觉和原来差不多, 我想的是改名后download = true, 还在想实现

@snowlocked
Copy link
Author

没看出改动的影响,感觉和原来差不多, 我想的是改名后download = true, 还在想实现

我这里修改是根据if里的下载函数判断成功了才把种子写入数据库,否则不写入,等下次fetch rss再尝试下载写入。或者看看有没有更好的实现。

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

Successfully merging this pull request may close these issues.

2 participants