add logs for jackett & qbittorrent api calls
This commit is contained in:
2
main.go
2
main.go
@@ -184,6 +184,7 @@ func main() {
|
||||
Query: item.Query,
|
||||
})
|
||||
if err != nil {
|
||||
log.Printf("couldn't get to jackett api: %v\n", err)
|
||||
continue
|
||||
}
|
||||
|
||||
@@ -319,6 +320,7 @@ func main() {
|
||||
if torrent.Hash != nil {
|
||||
properties, err := torrentClient.GetTorrentProperties(*torrent.Hash)
|
||||
if err != nil {
|
||||
log.Printf("couldn't get to qbittorrent api: %v\n", err)
|
||||
continue
|
||||
}
|
||||
torrent.Downloaded = properties.CompletionDate > -1
|
||||
|
||||
Reference in New Issue
Block a user