add logs for jackett & qbittorrent api calls

This commit is contained in:
2026-02-02 23:29:00 +03:00
parent 274ae94355
commit 85cce40a1f

View File

@@ -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