Compare commits

...

2 Commits

Author SHA1 Message Date
Timon Ringwald
ac827bcfab show debug info in checkTorrents 2022-08-15 16:18:54 +02:00
Timon Ringwald
bd7d811cf9 TRUSTED_ONLY fixed 2022-08-15 16:15:20 +02:00
2 changed files with 5 additions and 3 deletions

View File

@ -68,7 +68,8 @@ func main() {
}
func checkTorrents() {
fmt.Println("check torrents")
fmt.Println("checking torrents")
start := time.Now()
torrents, err := GetLatestNyaaContent()
if err != nil {
@ -90,5 +91,6 @@ func checkTorrents() {
}
}
fmt.Printf("sleep for %s\n", PollRate)
duration := time.Since(start)
fmt.Printf("check took %s. sleeping for %s\n", duration, PollRate-duration)
}

View File

@ -34,7 +34,7 @@ func HasEssentialProperties(torrent *model.ParsedTorrent) bool {
return false
}
if TrustedOnly && torrent.Torrent.Trusted {
if TrustedOnly && !torrent.Torrent.Trusted {
return false
}