Compare commits
2 Commits
d64d1c10d2
...
ac827bcfab
Author | SHA1 | Date | |
---|---|---|---|
|
ac827bcfab | ||
|
bd7d811cf9 |
6
main.go
6
main.go
@ -68,7 +68,8 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func checkTorrents() {
|
func checkTorrents() {
|
||||||
fmt.Println("check torrents")
|
fmt.Println("checking torrents")
|
||||||
|
start := time.Now()
|
||||||
|
|
||||||
torrents, err := GetLatestNyaaContent()
|
torrents, err := GetLatestNyaaContent()
|
||||||
if err != nil {
|
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)
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,7 @@ func HasEssentialProperties(torrent *model.ParsedTorrent) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
if TrustedOnly && torrent.Torrent.Trusted {
|
if TrustedOnly && !torrent.Torrent.Trusted {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user