This commit is contained in:
Lilith Ashley Nyx Arson 🔥 2024-11-03 20:59:41 +01:00
parent 7fb3309f7e
commit 036385e4a3
Signed by: lilith
SSH key fingerprint: SHA256:LAjgsAMyT3LO2JVtr6fQ4N3RTYoRRlIm5wAKsbDife4

View file

@ -22,6 +22,7 @@ add_trackers() {
}
while true; do
if [ "$TORRENTLIST" != "" ]; then
if [ ! -f /tmp/trackers.txt ] || [[ $(find "/tmp/trackers.txt" -mtime +1 -print) ]]; then
for base_url in "$TORRENTLIST"; do
curl -so "/tmp/trackers.txt" "${base_url}"
@ -31,6 +32,9 @@ while true; do
fi
done
fi
else
cp /opt/trackers.txt /tmp/trackers.txt
fi
# Get list of active torrents
ids="$(transmission-remote "$HOSTPORT" --authenv --list | grep -vE 'ETA|Seeding|Stopped|Finished|[[:space:]]100%[[:space:]]' | grep '^ ' | awk '{ print $1 }')"