Add qbittorrent_state
hyperreal.bsky.moonshadow.dev 3 months ago 5d78a803 73c55df4
··· 1 1 + #!/usr/bin/env bash 2 2 + 3 3 + set -euo pipefail 4 4 + 5 5 + if ! curl -s "http://${1}:8080/api/v2/torrents/info" | jq . | grep "state" | grep "downloading"; then 6 6 + curl -d "No active downloads" http://localhost:8080/qbittorrent_state 7 7 + fi