Dont reanalyze broken files
This commit is contained in:
@@ -198,12 +198,12 @@ func (t *TorrentManager) writeTorrentToFile(torrent *Torrent) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
t.log.Debugf("Saved torrent %s to file", t.GetKey(torrent), torrent.Hash)
|
t.log.Debugf("Saved torrent %s to file", t.GetKey(torrent))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *TorrentManager) applyMediaInfoDetails(torrent *Torrent) {
|
func (t *TorrentManager) applyMediaInfoDetails(torrent *Torrent) {
|
||||||
torrent.SelectedFiles.IterCb(func(_ string, file *File) {
|
torrent.SelectedFiles.IterCb(func(_ string, file *File) {
|
||||||
if file.MediaInfo != nil {
|
if file.MediaInfo != nil || file.State.Is("broken_file") {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
unrestrict := t.UnrestrictFileUntilOk(file, false)
|
unrestrict := t.UnrestrictFileUntilOk(file, false)
|
||||||
|
|||||||
Reference in New Issue
Block a user