Fix detection issues

This commit is contained in:
Ben Sarmiento
2024-02-18 04:15:41 +01:00
parent 02d900971d
commit 36298dd979
6 changed files with 63 additions and 67 deletions

View File

@@ -40,7 +40,6 @@ func (t *TorrentManager) Delete(accessKey string, deleteInRD bool) {
})
}
}
t.allAccessKeys.Remove(accessKey)
t.log.Infof("Removing torrent %s from zurg database (not real-debrid)", accessKey)
t.DirectoryMap.IterCb(func(directory string, torrents cmap.ConcurrentMap[string, *Torrent]) {
torrents.Remove(accessKey)