Page 1 of 1

multi trackers edition or search and replace function

Posted: Sat Oct 08, 2016 9:39 am
by shamael
Hi all,

I'm currently setup a seedbox and chosen Deluge. It's not done yet and I'm sticking to ĀµTorrent for the moment. I had to reset my tracker passkey on multiple torrents (>500), no issue on ĀµTorrent I was able to select all concerned and edit tracker in a single action. However on Deluge I did not found a way to to it massively.
Digging the web I found a similar request http://dev.deluge-torrent.org/ticket/2047
The status is "feature request" and I even saw a search and replace script code (not tested) in comment.

Did I miss the function/plugin in the interface or has this feature not yet be implemented? I love the "move storage" for all selected torrents, if the tracker edition can be edited similarly (mass) it'll be perfect.

Have a nice day all!

Regards
Shamael

Re: multi trackers edition or search and replace function

Posted: Tue Oct 11, 2016 7:12 am
by shamael
Am i the only one facing tracker passkey change? (lack of answer) lol

Re: multi trackers edition or search and replace function

Posted: Tue Oct 18, 2016 9:56 am
by shamael
for any new visitor:

Editing all .torrent file with Notepad++ to search and replace the passkey worked (you can search and replace in a complete folder w/o opening all the files). This is valid to reimport all torrents from another client but not for changing passkey in the same client.
for this purpose it seems you can backup+edit the "torrents.state" file (deluged stopped) but i didn't test it yet.

Regards
S

Re: multi trackers edition or search and replace function

Posted: Tue Oct 18, 2016 8:49 pm
by Cas
I provided a script for bulk editing in that ticket and will eventually get around to implementing it.

Re: multi trackers edition or search and replace function

Posted: Wed Oct 19, 2016 10:34 am
by shamael
Cas wrote:I provided a script for bulk editing in that ticket and will eventually get around to implementing it.


Hi Cas,

is it https://gist.github.com/cas--/5326335 ?
I would like to keep this safe somewhere, I'll certainly need it in the coming months

And if this could be integrated it will be perfect. I hope you will have time for such a change :)

BR's
S

Re: multi trackers edition or search and replace function

Posted: Mon Mar 27, 2017 9:52 pm
by marteenzh
I've been struggling with this, too, and finally found something that works on Mac OS:

Code: Select all

perl -pi -w -e 's/THIS/THAT/g;' /path/to/files*.txt


Referenced from [this page](http://osxdaily.com/2013/08/20/find-rep ... mand-line/).

Opened Terminal, cd'd to the directory where all my torrent files are held, and ran the command. Worked beautifully.

Re: multi trackers edition or search and replace function

Posted: Tue May 02, 2017 12:27 pm
by shamael
I finally had to do it myself too, passkey of tracker URL change can be done this way
http://forum.deluge-torrent.org/viewtopic.php?f=7&t=54491&p=226225&hilit=sed+tracker#p226225

This is a Linux how to with the "sed" command, but at the end even of the sed command is not available (windows possible, Mac OS not sure) it just explain how to stop Deluge and apply a search&replace to the correct file.