-
Notifications
You must be signed in to change notification settings - Fork 7
Triggering Searches
KyokoMiki edited this page Oct 25, 2025
·
3 revisions
Nemorosa can immediately search for cross-seeds when torrents finish downloading by adding an on-completion script to your torrent client (or the Sonarr/Radarr import script) that calls Nemorosa's HTTP API.
By configuring the client, you can automatically send webhooks to nemorosa when downloads complete, providing immediate cross-seeding without waiting for scheduled jobs.
- Create
transmission-nemorosa.sh, replacing<BASE_URL>and<API_KEY>with the correct values:
#!/bin/sh
curl -XPOST <BASE_URL>/api/webhook?infohash=$TR_TORRENT_HASH \
-H "Authorization: Bearer <API_KEY>"- Make it executable:
chmod +x transmission-nemorosa.sh- In Settings > Transfers > Management, select the script in the "Call script when download completes" menu item.
- Go to Tools > Options > Downloads.
- Enable Run external program on torrent completion, replacing
<BASE_URL>and<API_KEY>with the correct values:
curl -XPOST <BASE_URL>/api/webhook?infohash=%I \
-H "Authorization: Bearer <API_KEY>"- Create a file called
deluge-nemorosa.sh, replacing<BASE_URL>and<API_KEY>with the correct values:
#!/bin/bash
infohash=$1
name=$2
path=$3
curl -XPOST <BASE_URL>/api/webhook?infohash=$infohash \
-H "Authorization: Bearer <API_KEY>"- Make the script executable:
chmod +x deluge-nemorosa.sh- In Deluge:
- Enable the Execute plugin
- Under Add Command, select the event Torrent Complete and input:
/path/to/deluge-nemorosa.sh- Press Add and Apply - Restart your Deluge client/daemon
- Create a script named
rtorrent-nemorosa.sh, replacing<BASE_URL>and<API_KEY>with the correct values:
#!/bin/sh
curl -XPOST <BASE_URL>/api/webhook?infohash=$2 \
-H "Authorization: Bearer <API_KEY>"- Make it executable:
chmod +x rtorrent-nemorosa.sh- Add to
.rtorrent.rc:
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,nemorosa,"execute={/full/path/to/rtorrent-nemorosa.sh,$d.name=,$d.hash=,$d.data_path=}"' >> ~/.rtorrent.rcNote: Replace /full/path/to/rtorrent-nemorosa.sh with the absolute path to your script.
- Restart rTorrent