Group all unplayable torrents in a separate directory

This commit is contained in:
Ben Sarmiento
2024-01-06 21:58:10 +01:00
parent 9f94a9bb09
commit 4b441ce2d8
5 changed files with 24 additions and 11 deletions

View File

@@ -16,7 +16,7 @@ func (t *TorrentManager) CheckDeletedStatus(torrent *Torrent) bool {
torrent.DownloadedIDs.Each(func(id string) bool {
infoCache.Set(id, torrent)
t.writeTorrentToFile(id, torrent)
return true
return false
})
}
return false
@@ -32,7 +32,7 @@ func (t *TorrentManager) Delete(accessKey string, deleteInRD bool) {
t.Api.DeleteTorrent(id)
infoCache.Remove(id)
t.deleteTorrentFile(id)
return true
return false
})
}
}