Always repair with 2 files
This commit is contained in:
@@ -670,7 +670,7 @@ func (t *TorrentManager) Repair(accessKey string) {
|
|||||||
// if we download a single file, it will be named differently
|
// if we download a single file, it will be named differently
|
||||||
// so we need to download 1 extra file to preserve the name
|
// so we need to download 1 extra file to preserve the name
|
||||||
// this is only relevant if we enable retain_rd_torrent_name
|
// this is only relevant if we enable retain_rd_torrent_name
|
||||||
if t.cfg.EnableRetainRDTorrentName() && len(missingFiles) == 1 && streamableCount > 1 {
|
if len(missingFiles) == 1 && streamableCount > 1 {
|
||||||
// add the first file link encountered with a prefix of http
|
// add the first file link encountered with a prefix of http
|
||||||
for _, file := range torrent.SelectedFiles.Items() {
|
for _, file := range torrent.SelectedFiles.Items() {
|
||||||
if strings.HasPrefix(file.Link, "http") {
|
if strings.HasPrefix(file.Link, "http") {
|
||||||
|
|||||||
Reference in New Issue
Block a user