summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2025-05-24 19:11:50 -0700
committerXiao Pan <xyz@flylightning.xyz>2025-05-24 19:11:50 -0700
commit1404fac74de085437d950307d006c081f7d4d2c9 (patch)
treee5c85146a79093470a306b073fa72cd231208f9d
parent0d55eb95076d487e5b17dd08a41c08114982917b (diff)
upd no need add tracker list to qbtHEADmaster
Because qbt PR [0] added the feature of auto add tracker list from url. [0] https://github.com/qbittorrent/qBittorrent/pull/21828
-rwxr-xr-xsh/upd1
1 files changed, 0 insertions, 1 deletions
diff --git a/sh/upd b/sh/upd
index ccd93f1..d8defd0 100755
--- a/sh/upd
+++ b/sh/upd
@@ -302,7 +302,6 @@ monthly_misc () {
# https://github.com/qbittorrent/qBittorrent/wiki#webui-api
curl -sS -X POST 'ibwg:57151/api/v2/search/updatePlugins' &
for qbt_wireguard_host in stwg ibwg; do
- curl -sS https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_best.txt | awk '$0{printf("%s\\n",$0)}' | xargs -0 -I {} curl -sS -d json='{"add_trackers":"{}"}' "$qbt_wireguard_host:57151/api/v2/app/setPreferences" &
# another way: `jq -r '.[]|"\(.added_on)\t\(.hash)\t\(.name)"'`
curl -sS "$qbt_wireguard_host:57151/api/v2/torrents/info?category=useful" | jq -r '.[]|[.added_on,.hash,.name]|@tsv' | grep 'archlinux.*\.iso' | sort -n | head -n-1 | awk '{print $2}' | while read -r hash; do
# need POST to delete torrents. -d default POST, so no need `-X POST`