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-)"