Skip to content

Commit

Permalink
fix: only search cross seed on tag force-cross-seed
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Buhl <[email protected]>
  • Loading branch information
onedr0p committed Nov 2, 2023
1 parent 3242fc3 commit bcb89ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kubernetes/apps/default/qbittorrent/app/config/completed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
# qBittorrent settings > 'Run external program on torrent finished'
# /scripts/completed.sh "%F" "%G"
/bin/chmod -R 750 "$1"
if [[ "$2" == *"skip-cross-seed"* ]]; then
printf "Skipping cross-seed check for '%s' with tags '%s'\n" "$1" "$2"
else
if [[ "$2" == *"force-cross-seed"* ]]; then
printf "Searching cross-seed for '%s' with tags '%s'\n" "$1" "$2"
/usr/bin/curl \
--silent \
Expand All @@ -15,6 +13,8 @@ else
--retry-max-time 40 \
--request POST \
--data-urlencode "path=$1" \
http://cross-seed.default.svc.cluster.local:2468/api/webhook
http://cross-seed.default.svc.cluster.local/api/webhook
else
printf "Skipping cross-seed check for '%s' with tags '%s'\n" "$1" "$2"
fi
exit 0

0 comments on commit bcb89ab

Please sign in to comment.