Assorted shell and Python scripts
at main 188 B view raw
1#!/usr/bin/env bash 2 3set -euo pipefail 4 5DHT_NODES=$(curl -s "http://${1}:8080/api/v2/transfer/info" | jq '.dht_nodes') 6curl -d "${DHT_NODES} nodes" http://localhost:8080/qbittorrent_state