From bf70aad9096c982d00aa2cd4307327a0956c8aa4 Mon Sep 17 00:00:00 2001 From: Ben Sarmiento Date: Sat, 20 Jan 2024 15:04:58 +0100 Subject: [PATCH] Fix issues on unplayable --- internal/torrent/manager.go | 2 +- internal/torrent/repair.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/torrent/manager.go b/internal/torrent/manager.go index 40d1e6e..d331a75 100644 --- a/internal/torrent/manager.go +++ b/internal/torrent/manager.go @@ -51,7 +51,7 @@ func NewTorrentManager(cfg config.ConfigInterface, api *realdebrid.RealDebrid, w repairs: mapset.NewSet[string](), allAccessKeys: mapset.NewSet[string](), latestState: &LibraryState{}, - requiredVersion: "11.01.2024", + requiredVersion: "20.01.2024", workerPool: workerPool, repairPool: repairPool, log: log, diff --git a/internal/torrent/repair.go b/internal/torrent/repair.go index 21a1c02..c2bf97b 100644 --- a/internal/torrent/repair.go +++ b/internal/torrent/repair.go @@ -196,7 +196,7 @@ func (t *TorrentManager) repair(torrent *Torrent) { if assignedCount > 0 { // if there are any assigned count t.log.Infof("Assigned %d links to selected files for torrent %s", assignedCount, t.GetKey(torrent)) - } else if rarCount > 0 { + } else if rarCount == 1 && newUnassignedLinks.Count() == 1 { // also is assignedCount=0 // this is a rar'ed torrent, nothing we can do if t.Config.ShouldDeleteRarFiles() {