Fix the float64 conversion
This commit is contained in:
@@ -283,19 +283,19 @@ func (t *TorrentManager) addMoreInfo(torrent *Torrent) {
|
||||
})
|
||||
}
|
||||
if len(selectedFiles) > len(info.Links) && info.Progress == 100 {
|
||||
log.Printf("Some links has expired for %s, %s: %d selected but only %d links\n", info.ID, info.Name, len(selectedFiles), len(info.Links))
|
||||
log.Printf("Some links has expired for %s, %s: %d selected but only %d link(s)\n", info.ID, info.Name, len(selectedFiles), len(info.Links))
|
||||
// chaotic file means RD will not output the desired file selection
|
||||
// e.g. even if we select just a single mkv, it will output a rar
|
||||
var isChaotic bool
|
||||
selectedFiles, isChaotic = t.organizeChaos(info, selectedFiles)
|
||||
if isChaotic {
|
||||
log.Println("This torrent is unfixable, it's always returning an unstreamable link, ignoring", info.Name, info.ID)
|
||||
log.Println("This torrent is unfixable, it's always returning an unstreamable link, ignoring", info.ID, info.Name)
|
||||
} else {
|
||||
if len(streamableFiles) > 1 {
|
||||
log.Println("Marking for repair", info.Name)
|
||||
log.Println("Marking for repair", info.ID, info.Name)
|
||||
forRepair = true
|
||||
} else {
|
||||
log.Println("This torrent is unfixable, the lone streamable link has expired, ignoring", info.Name, info.ID)
|
||||
log.Println("This torrent is unfixable, the lone streamable link has expired, ignoring", info.ID, info.ID)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user