multi trackers edition or search and replace function

Suggestions and discussion of future versions
shamael
Super Seeder
Super Seeder
Posts: 269
Joined: Sat Oct 08, 2016 9:28 am
OS or Distro: osmc

multi trackers edition or search and replace function

Postby shamael » Sat Oct 08, 2016 9:39 am

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
Super Seeder
Super Seeder
Posts: 269
Joined: Sat Oct 08, 2016 9:28 am
OS or Distro: osmc

Re: multi trackers edition or search and replace function

Postby shamael » Tue Oct 11, 2016 7:12 am

Am i the only one facing tracker passkey change? (lack of answer) lol

shamael
Super Seeder
Super Seeder
Posts: 269
Joined: Sat Oct 08, 2016 9:28 am
OS or Distro: osmc

Re: multi trackers edition or search and replace function

Postby shamael » Tue Oct 18, 2016 9:56 am

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: 3442
Joined: Mon Dec 07, 2009 6:04 am
OS or Distro: Ubuntu 16.04
Location: Scotland

Re: multi trackers edition or search and replace function

Postby Cas » Tue Oct 18, 2016 8:49 pm

I provided a script for bulk editing in that ticket and will eventually get around to implementing it.

shamael
Super Seeder
Super Seeder
Posts: 269
Joined: Sat Oct 08, 2016 9:28 am
OS or Distro: osmc

Re: multi trackers edition or search and replace function

Postby shamael » Wed Oct 19, 2016 10:34 am

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
OS or Distro: Mac OS

Re: multi trackers edition or search and replace function

Postby marteenzh » Mon Mar 27, 2017 9:52 pm

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
Super Seeder
Super Seeder
Posts: 269
Joined: Sat Oct 08, 2016 9:28 am
OS or Distro: osmc

Re: multi trackers edition or search and replace function

Postby shamael » Tue May 02, 2017 12:27 pm

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.


Return to “Development”

Who is online

Users browsing this forum: No registered users and 36 guests