Open raku-cat opened 3 years ago
I was able to come up with a bit of a hacky workaround for this using a bash script,
Place this somewhere and make sure to mark the file as exectable:
#!/bin/bash
filed=$1
if [[ $filed == *.meta ]]; then
exit
else
rm -rf -- "$filed"
fi
Add the following line to your .rtorrent.rc:
method.set_key = event.download.erased,delete_erased,"execute=/replace/me/path/to/script.sh,$d.base_path="
Not perfect but got things working well enough for me
Howdy, I've been trying to figure out an issue that popped up for me over the weekend after adding
method.set_key = event.download.erased,delete_erased,"execute=rm,-rf,--,$d.base_path="
to my rtorrent config, this works as intended for removing torrents normally, but appears to break adding magnet links, as it deletes the .meta file that gets downloaded initially before it switches to the full torrent, causing the torrent to repeatedly pause while downloading.Edit: Screenshot of the actions I'm referring to for clarity, magnet link is added causing the first .meta (lowest item in this list) file to be added, once it's downloaded there's a delete action, which also removes the file from the filesystem, then an add for the full torrent (top item in list), once the full torrent is added, it downloads for a variable amount of seconds (usually 10 or so) and then pauses, needing to be un-paused repeatedly until completed.
Adding a torrent directly by .torrent file causes no such issue.