Drapersniper / Qbitrr

A simple Python script to talk to Qbit and Arr's
MIT License
26 stars 4 forks source link

KI: DND and internet checks can return false positives #8

Closed Drapersniper closed 2 years ago

Drapersniper commented 2 years ago

Currently if connecting to the specified URL fails for any number of reasons if you still have internet the script will go idle for 15s on the specified Arr instance.

this is not a huge problem as it will just recover and it doesn't do anything destruction, the current behaviour is better than just always assuming the internet works as this can result in destructive behaviour (Removing torrents because the script sees them as stalled) .

For the time being, just making this issue to serve as a KI - if someone can think of a better logic to check for both DNS AND valid internet connectivity please let me know or just make a PR.