Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Allow passing a quoted enclosed, space separated list of torrent ids …
…as an argument.
  • Loading branch information
pataquets committed Mar 24, 2020
commit c5d719cab8cad79806ec231b60714f0c9bb2864b
2 changes: 1 addition & 1 deletion manual-tracker-add.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 }')"
Expand Down