File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ sleep 3m
2323rm /tmp/TTAA.$id .lock
2424}
2525# Get list of active torrents
26- ids=" $( transmission-remote --auth=" $auth " --list | grep -E ' Downloading ' | grep ' ^ ' | awk ' { print $1 }' ) "
26+ ids=" $( transmission-remote --auth=" $auth " --list | grep -vE ' Seeding|Stopped|Finished ' | grep ' ^ ' | awk ' { print $1 }' ) "
2727 for id in $ids ; do
2828add_date=" $( transmission-remote --auth=" $auth " --torrent " $id " --info| grep ' ^ Date added: ' | cut -c 21-) "
2929add_date_t=" $( date -d " $add_date " " +%Y-%m-%d %H:%M" ) "
Original file line number Diff line number Diff line change @@ -3,9 +3,10 @@ Description=transmission tracker add
33Requires =network.target
44
55[Service]
6- Type =forked
6+ Type =simple
77ExecStart =/opt/bin/add_trackers_auto.sh
8- Restart =always
8+ ExecStop =/bin/kill -s TERM $MAINPID
9+ KillMode =control-group
910
1011[Install]
1112WantedBy =multi-user.target
You can’t perform that action at this time.
0 commit comments