Add media info filters

This commit is contained in:
Ben Adrian Sarmiento
2024-06-05 19:19:03 +02:00
parent fa26553933
commit c63ce8da0a
7 changed files with 265 additions and 58 deletions

View File

@@ -119,6 +119,7 @@ func (t *TorrentManager) repairAll(torrent *Torrent) {
}
})
if brokenFileCount > 0 {
t.repairLog.Debugf("Torrent %s has %d broken file(s), adding to repair list", t.GetKey(torrent), brokenFileCount)
toRepair.Add(torrent)
return
}
@@ -184,7 +185,7 @@ func (t *TorrentManager) repair(torrent *Torrent) {
}
allPlayable = false
if t.Config.GetRarAction() == "extract" {
if t.Config.GetRarAction() == "extract" && file.ID != 0 {
info, _ := t.redownloadTorrent(torrent, []string{fmt.Sprintf("%d", file.ID)})
if info != nil {
t.setToBinOnceDone(info.ID)