Add media info filters
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user