From bd800f5ffa364df9f12fca1c922b31279aae05a3 Mon Sep 17 00:00:00 2001 From: Lucian Maly Date: Mon, 16 Jun 2025 15:17:56 +1000 Subject: [PATCH] Update triggering-searches.md It did not work in it's original form - I had to change the way how rT triggers the webhook. This was tested and confirmed working. --- docs/tutorials/triggering-searches.md | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/docs/tutorials/triggering-searches.md b/docs/tutorials/triggering-searches.md index 13da5ab..98c264d 100644 --- a/docs/tutorials/triggering-searches.md +++ b/docs/tutorials/triggering-searches.md @@ -101,16 +101,8 @@ Use the webhook command with `-d "includeSingleEpisodes=true"` while keeping ```shell #!/bin/sh - curl -XPOST /api/webhook?apikey= -d "infoHash=$2" -d "includeSingleEpisodes=true" + /usr/bin/curl -s :2468/api/webhook?apikey= -d "infoHash=$1" -d "includeSingleEpisodes=true" > /dev/null 2>&1 & ``` - - OR - - ```shell - #!/bin/sh - curl -XPOST /api/webhook?apikey= -d "infoHash=$2" - ``` - 2. Make it executable: ```shell chmod +x rtorrent-cross-seed.sh @@ -118,7 +110,7 @@ Use the webhook command with `-d "includeSingleEpisodes=true"` while keeping 3. Add to `.rtorrent.rc`: ```shell echo 'method.insert=d.data_path,simple,"if=(d.is_multi_file),(cat,(d.directory),/),(cat,(d.directory),/,(d.name))"' >> .rtorrent.rc - echo 'method.set_key=event.download.finished,cross_seed,"execute={'`pwd`/rtorrent-cross-seed.sh',$d.name=,$d.hash=,$d.data_path=}"' >> .rtorrent.rc + echo 'method.set_key=event.download.finished,cross_seed,"execute={'`pwd`/rtorrent-cross-seed.sh',$d.hash=}"' >> .rtorrent.rc ``` 4. Restart rTorrent.