Page 1 of 1

Tracker Editor - New Feature Request (possibly)

Posted: Fri Aug 10, 2018 1:35 am
by adelphiaUK
Hi.

I am currently going though all my torrents to update the trackers to make (some very old) torrent files use more up to date trackers by means of the "Default Tracker" plugin.

What I have found though is that some of my torrents have 160+ trackers and to manually remove each and every one from numerous torrent files is very tedious and takes an absolute age to clean them out.

Unless there is a method of doing this already, this is the new feature request and, as far as I can tell (being a programmer, although not in Python), it shouldn't be too much of an addition.

Can you add the ability to multi select entries in the "tracker" list and also a "clear list" button to empty the list completely with one click?

Something else, which will take a bit more coding, and that is to enable multiple torrents to be edited simultaneously to clear / add / remove rather than to do each torrent individually.

I know you're busy with real life stuff now but I'm keen to keep on with Deluge now that I have it (almost) working the way I want it to and it's so much easier to configure than a lot of other cross-platform server/clients.

I await your reply oh humble one.

Oh, one last thing; is Patreon a language thing where you are (which could be anywhere as far as I know) as in most native English speaking countries the word is Patron rather than Patreon.

Re: Tracker Editor - New Feature Request (possibly)

Posted: Wed Sep 12, 2018 2:04 pm
by Cas
There is an open ticket for multi-tracker editing: https://dev.deluge-torrent.org/ticket/2047

Patreon https://www.patreon.com/deluge_cas

Re: Tracker Editor - New Feature Request (possibly)

Posted: Thu Sep 13, 2018 9:29 am
by adelphiaUK
Thanks for pointing me to this and I've followed the links which suggests it was done some 14 months ago but has yet to be implemented. Is anyone going to do as suggested and make this a plugin or do we just wait and keep doing everything manually which is just so darn tedious; and should I also state seriously aggravates my RSI.

Not being a python programmer myself I can't even offer to help.

Re: Tracker Editor - New Feature Request (possibly)

Posted: Thu Sep 13, 2018 9:39 am
by Cas
That link is a suggested change but I don't think that it is quite correct so was not implemented in codebase.

There is a python script that I created that you can try out.

Re: Tracker Editor - New Feature Request (possibly)

Posted: Thu Sep 13, 2018 10:22 am
by adelphiaUK
Yes, but as stated I've no clue about python. How would I use it? Thanks.

Re: Tracker Editor - New Feature Request (possibly)

Posted: Thu Sep 13, 2018 1:23 pm
by Cas
I have updated the script to make it easier to use: https://gist.github.com/cas--/5326335

It relies on the deluge config being in the default location so if it is different modify line 23.

Make the script executable and run it:

Code: Select all

./deluge_tracker_rename.py
It will prompt for tracker URL and either new URL or leave blank to remove tracker from list .e.g.:

Code: Select all

Tracker URL: udp://tracker.openbittorrent.com:80/announce
New tracker URL (leave empty to remove): 
State file: /home/user/.config/deluge/state/torrents.state
Remove tracker 'udp://tracker.openbittorrent.com:80/announce'
Continue? (y/n) y
Nothing to do

Re: Tracker Editor - New Feature Request (possibly)

Posted: Thu Sep 13, 2018 5:29 pm
by adelphiaUK
Is this able to be run in the GUI or is it from command line only? Command line is no issue as I have access to that.