feat: block torrent in blacklist from addng to download client

This commit is contained in:
Simon Ding
2025-04-23 10:26:13 +08:00
parent 0d527c22e5
commit 9e41a1513c
4 changed files with 74 additions and 23 deletions

View File

@@ -56,6 +56,7 @@ func (c *Engine) Init() {
func (c *Engine) GetTask(id int) (*Task, bool) {
return c.tasks.Load(id)
}
func (c *Engine) reloadUsingBuildinDownloader(h *ent.History) error{
cl, err := buildin.NewDownloader(c.db.GetDownloadDir())
if err != nil {