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,
|
Query: item.Query,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
log.Printf("couldn't get to jackett api: %v\n", err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -319,6 +320,7 @@ func main() {
|
|||||||
if torrent.Hash != nil {
|
if torrent.Hash != nil {
|
||||||
properties, err := torrentClient.GetTorrentProperties(*torrent.Hash)
|
properties, err := torrentClient.GetTorrentProperties(*torrent.Hash)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
log.Printf("couldn't get to qbittorrent api: %v\n", err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
torrent.Downloaded = properties.CompletionDate > -1
|
torrent.Downloaded = properties.CompletionDate > -1
|
||||||
|
|||||||
Reference in New Issue
Block a user