Remove extra downloads directory
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user