Remove destructive stuffs
This commit is contained in:
@@ -470,7 +470,6 @@ func (t *TorrentManager) organizeChaos(info *realdebrid.Torrent, selectedFiles *
|
||||
}
|
||||
}
|
||||
if !found {
|
||||
t.log.Debugf("Found a file that is NOT in the selection for torrent id=%s: %s %v", info.ID, result.Response.Filename, result.Response.Streamable)
|
||||
if result.Response.Streamable == 1 {
|
||||
selectedFiles.Set(filepath.Base(result.Response.Filename), &File{
|
||||
File: realdebrid.File{
|
||||
@@ -522,13 +521,6 @@ func (t *TorrentManager) repairAll() {
|
||||
// t.repair(&info, true)
|
||||
break // only repair the first one for repair and then move on
|
||||
}
|
||||
if len(info.Links) == 0 && info.Progress == 100 {
|
||||
// If the torrent has no links
|
||||
// and already processing repair
|
||||
// delete it!
|
||||
t.log.Infof("Deleting broken torrent id=%s as it doesn't contain any files", info.ID)
|
||||
t.rd.DeleteTorrent(info.ID)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user