From c134ca73371837f085a11a60e8b66b4b45d6879c Mon Sep 17 00:00:00 2001 From: Ashley Graves Date: Sun, 3 Nov 2024 20:46:07 +0100 Subject: [PATCH] AAAAAAAAA --- tracker-add-auto.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tracker-add-auto.sh b/tracker-add-auto.sh index 1165b53..d64dbcc 100644 --- a/tracker-add-auto.sh +++ b/tracker-add-auto.sh @@ -45,6 +45,8 @@ while true; do # Get list of active torrents ids="$(transmission-remote "$HOSTPORT" --authenv --list | grep -vE 'Seeding|Stopped|Finished|[[:space:]]100%[[:space:]]' | grep '^ ' | awk '{ print $1 }')" for id in $ids; do + echo Processing $id + if [ ! -f /tmp/TTAA.$id.lock ]; then hash="$(transmission-remote "$HOSTPORT" --authenv --torrent "$id" --info | grep '^ Hash: ' | awk '{ print $2 }')" torrent_name="$(transmission-remote "$HOSTPORT" --authenv --torrent "$id" --info | grep '^ Name: ' | cut -c 9-)"