Assorted shell and Python scripts

Add qbittorrent_state

Changed files
+7
+7
qbittorrent_state
···
+
#!/usr/bin/env bash
+
+
set -euo pipefail
+
+
if ! curl -s "http://${1}:8080/api/v2/torrents/info" | jq . | grep "state" | grep "downloading"; then
+
curl -d "No active downloads" http://localhost:8080/qbittorrent_state
+
fi