Skip to content
This repository was archived by the owner on Jun 8, 2023. It is now read-only.

Commit d5acbd3

Browse files
committed
Initial commit
0 parents  commit d5acbd3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tracker-add.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
torrent_hash=$1
4+
base_url='http://torrentz.eu'
5+
pattern='announcelist_[0-9]+'
6+
7+
announce_list=`curl -s ${base_url}/${torrent_hash} | grep -Eo "${pattern}"`
8+
9+
for tracker in $(curl -s ${base_url}/${announce_list})
10+
do
11+
echo "Adding ${tracker} to torrent ${torrent_hash}"
12+
transmission-remote -t ${hash} -td ${tracker}
13+
done

0 commit comments

Comments
 (0)