Remove extra downloads directory

This commit is contained in:
Ben Adrian Sarmiento
2024-07-21 02:37:32 +02:00
parent f8b9f8955b
commit 8d06ce88d3
4 changed files with 3 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ func (t *TorrentManager) Delete(accessKey string, deleteInRD bool) {
// t.log.Infof("Removing torrent %s from zurg database (not real-debrid)", accessKey)
t.DirectoryMap.IterCb(func(directory string, torrents cmap.ConcurrentMap[string, *Torrent]) {
if directory == config.DOWNLOADS || directory == config.DUMPED_TORRENTS {
if directory == config.DUMPED_TORRENTS {
return
}
torrents.Remove(accessKey)