multi trackers edition or search and replace function

Suggestions and discussion of future versions
Post Reply
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

multi trackers edition or search and replace function

Post 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
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: multi trackers edition or search and replace function

Post by shamael »

Am i the only one facing tracker passkey change? (lack of answer) lol
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: multi trackers edition or search and replace function

Post 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
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: multi trackers edition or search and replace function

Post by Cas »

I provided a script for bulk editing in that ticket and will eventually get around to implementing it.
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: multi trackers edition or search and replace function

Post 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
marteenzh
New User
New User
Posts: 2
Joined: Mon Mar 27, 2017 9:47 pm

Re: multi trackers edition or search and replace function

Post 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.
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: multi trackers edition or search and replace function

Post 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/viewtop ... er#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.
Post Reply