Repair adjustments
This commit is contained in:
@@ -143,8 +143,7 @@ func (t *TorrentManager) getMoreInfo(rdTorrent realdebrid.Torrent) *Torrent {
|
||||
|
||||
return cachedTor
|
||||
|
||||
} else if diskTor := t.readTorrentFromFile(rdTorrent.ID); diskTor != nil &&
|
||||
diskTor.SelectedFiles.Count() == len(rdTorrent.Links) {
|
||||
} else if diskTor := t.readTorrentFromFile(rdTorrent.ID); diskTor != nil && !diskTor.AllInProgress() {
|
||||
|
||||
infoCache.Set(rdTorrent.ID, diskTor)
|
||||
t.ResetSelectedFiles(diskTor)
|
||||
@@ -217,7 +216,7 @@ func (t *TorrentManager) getMoreInfo(rdTorrent realdebrid.Torrent) *Torrent {
|
||||
return &torrent
|
||||
}
|
||||
|
||||
// ResetSelectedFiles will rename the file based on config
|
||||
// ResetSelectedFiles resets the selected files for a torrent
|
||||
func (t *TorrentManager) ResetSelectedFiles(torrent *Torrent) {
|
||||
// reset selected files
|
||||
newSelectedFiles := cmap.New[*File]()
|
||||
|
||||
Reference in New Issue
Block a user