Track deletes within refresh
This commit is contained in:
@@ -80,12 +80,11 @@ func (t *TorrentManager) refreshTorrents(isInitialRun bool) []string {
|
||||
}
|
||||
}
|
||||
// removed torrents
|
||||
t.allAccessKeys.Difference(freshAccessKeys).Each(func(accessKey string) bool {
|
||||
allAccessKeys := mapset.NewSet[string](allTorrents.Keys()...)
|
||||
allAccessKeys.Difference(freshAccessKeys).Each(func(accessKey string) bool {
|
||||
t.Delete(accessKey, false)
|
||||
t.allAccessKeys.Remove(accessKey)
|
||||
return false
|
||||
})
|
||||
t.allAccessKeys.Append(freshAccessKeys.ToSlice()...)
|
||||
|
||||
t.log.Infof("Compiled into %d torrents, %d were missing info", allTorrents.Count(), noInfoCount)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user