diff --git a/manual-tracker-add.sh b/manual-tracker-add.sh index 6bc1964..e5d7828 100755 --- a/manual-tracker-add.sh +++ b/manual-tracker-add.sh @@ -27,7 +27,7 @@ done } # Get list of active torrents -ids="$(transmission-remote "$host" --auth="$auth" --list | grep -vE 'Seeding|Stopped|Finished' | grep '^ ' | awk '{ print $1 }')" +ids=${1:-"$(transmission-remote "$host" --auth="$auth" --list | grep -vE 'Seeding|Stopped|Finished' | grep '^ ' | awk '{ print $1 }')"} for id in $ids ; do hash="$(transmission-remote "$host" --auth="$auth" --torrent "$id" --info | grep '^ Hash: ' | awk '{ print $2 }')"