Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add way to mass update announce url #2428

Open
ghost opened this issue Jan 17, 2015 · 67 comments

Comments

@ghost
Copy link

commented Jan 17, 2015

Unless I'm blind I don't see a way to do this in qB currently.

It is not possible to update the tracker url for more than one torrent at a time.

Say I'm using a tracker and the announce url changes (for instance a tracker that uses passkeys and the passkey changes). I have no way to update the 100 torrents I have seeding from the tracker. I would have to manually update each one. And if you're seeding a lot of torrents that'd get tedious. uT allows you to select all the torrents -> edit -> paste in the new announce url -> save and then it updates all the torrents' announce urls. For torrents with more than one announce url you could have the update field a textarea box that has each tracker on a new line.

I think this would be a great addition. (If this suggestion exists, sorry, I tried searching for it.)

@ghost ghost changed the title Add way to mass update announce url [Feature Request] Add way to mass update announce url Jan 17, 2015
@sledgehammer999 sledgehammer999 changed the title [Feature Request] Add way to mass update announce url Add way to mass update announce url Jan 17, 2015
@Rimmer7

This comment has been minimized.

Copy link

commented Apr 4, 2015

As I just now had to do all that stuff manually over a couple of hours, I put my vote for this feature.

@Balls0fSteel

This comment has been minimized.

Copy link

commented May 6, 2015

If anyone have this "issue", you can always just move the affected .torrent files into a folder, and use Notepad++ on Windows. On Linux, I think Geany can do this. If not, you can cook up a small bash script using sed + bash in like 5 minutes.

@sledgehammer999

This comment has been minimized.

Copy link
Contributor

commented May 6, 2015

If anyone have this "issue", you can always just move the affected .torrent files into a folder, and use Notepad++ on Windows. On Linux, I think Geany can do this. If not, you can cook up a small bash script using sed + bash in like 5 minutes.

.torrent files aren't text files. They contain binary data and you risk borking them if you treat them as text. Those files are bencoded: https://en.wikipedia.org/wiki/Bencode

@Balls0fSteel

This comment has been minimized.

Copy link

commented May 6, 2015

I know, but trust me on this one mate. Unless you touch the binary part of it, and just use a text replacement, it wil work, 100%. I have been using this technique since the very first uTorrents and since torrenting started to rise. Never had an issue with it.

It's like having a pistol. You should not shoot yourself with it.
You can delete files on your PC. But you should not delete your system32 or "/" anyway.
And the list goes on.

@ivan

This comment has been minimized.

Copy link

commented Dec 4, 2015

If editing the bencode with Notepad++ worked for you, it's because you didn't change the length of the announce URL.

👍 on this feature.

@jgrumbles

This comment has been minimized.

Copy link

commented Dec 19, 2015

Would love to see this feature.

@dogancelik

This comment has been minimized.

Copy link

commented Feb 20, 2016

I would love to see a batch tracker editing feature, as manually going over every torrent is really messy, and time-consuming. For example: removing certain tracker URLs from a set of torrents would be really awesome. 👍

@DrKittens

This comment has been minimized.

Copy link

commented Mar 13, 2016

http://i.imgur.com/XKYkRO7.png
Pic related?

Assumes you kept ALL the torrent files though, because you'll still need to add them back into qbittorent to push that change..

@ghost

This comment has been minimized.

Copy link
Author

commented Mar 14, 2016

That wouldn't really work efficiently

Assumes you kept ALL the torrent files though, because you'll still need to add them back into qbittorent to push that change..

This would basically be the same as just re-downloading the torrents with the new passkey in them and adding them. Which is just as much work as manually changing the tracker URL

@DrKittens

This comment has been minimized.

Copy link

commented Mar 15, 2016

This would basically be the same as just re-downloading the torrents with the new passkey in them and adding them.

qbittorent maintains a local cache of active .torrent files (magnet links are saved aswell)
Under windows its found at %appdata%....\Local\qBittorrent\BT_backup
You can just drop all the .torrent files back into qbittorent to push a tracker merge correct?

But yes its probably not very efficient if the tracker merge doesn't add in the new trackers you specified in options, because then you would have to remove them all + re-add them and set path locations again which is too much effort.

@enigmaLT

This comment has been minimized.

Copy link

commented Jul 3, 2016

for the love of gods. Please do implement this. I have over 200 torrents in need of an urgent announce URL update (mandatory pass key change). I am not enjoying this.

@roboyoshi

This comment has been minimized.

Copy link

commented Aug 25, 2016

you can use transmission-edit in the meantime: http://linux.die.net/man/1/transmission-edit

@andrewzey

This comment has been minimized.

Copy link

commented Jan 24, 2017

@robdidop

How exactly do you accomplish this? I've edited all the torrents with transmission-edit in the BT_backup directory, but the .fastresume files still have the old announce urls, and qBittorrent doesn't seem to update from editing the torrent files alone.

@ziconilsson

This comment has been minimized.

Copy link

commented Mar 4, 2017

The lack of this feature might one day make me change client, manually changing one tracker adress at a time gets old very quickly.

@eb0lavirus

This comment has been minimized.

Copy link

commented Mar 24, 2017

This would really come in handy for me right now. I'll gladly donate to the project if that helps.

@Balls0fSteel

This comment has been minimized.

Copy link

commented Mar 24, 2017

@eb0lavirus We could edit the file itself, I will check if there is something I can do.
(Of course this would not be part of the official client/build, this would be just a small tool for all platforms that would allow the mass edit (like replace all) of announce URLs.)

@tanmatra

This comment has been minimized.

Copy link

commented Mar 24, 2017

I'm planning to write standalone util for this, as this task is relevant for me. Platform will be Kotlin (Java).

@insurw

This comment has been minimized.

Copy link

commented Mar 28, 2017

I added all my torrents to qbittorrent and now I have 300 broken torrents. Sigh, what a waste of time. Back to utorrent I guess. How can this program be so praised and missing such a basic functionality...

@karserasl

This comment has been minimized.

Copy link

commented Mar 29, 2017

WOW i didnt even think that this "feature"? (basic really) isnt in here.
Now i have 100< torrents without tracker. Not gonna even bother going manually to each one.
Sorry but kinda basic feature.

@Balls0fSteel

This comment has been minimized.

Copy link

commented Mar 29, 2017

Kinda basic that maybe one client can do at the moment?
I know, qBittorrent could have it - patches are most welcome. Just saying that it is (sadly) definitely cannot be found in every client.

@insurw

This comment has been minimized.

Copy link

commented Mar 30, 2017

@Balls0fSteel utorrent, Transmission and ruTorrent can. That's mostly all big clients.

Anyway. It doesn't seem as hard as I thought it'd be. Apparently you can just use Notepad++'s "Find in files & replace". Make backups of the torrents before just incase you make a mistake.

@insurw

This comment has been minimized.

Copy link

commented Apr 1, 2017

Well, editing with Notepad++ didn't work. It just didn't load any of the edited torrents even though I'm pretty sure I did it correctly.
Hmm, seems you gotta edit the resume files too.

Meh, editing resume files didn't help. qbittorent just ignores the edited torrents and there's no error messages in the log.

@Matoran

This comment has been minimized.

Copy link

commented May 2, 2017

with linux
~/.local/share/data/qBittorrent/BT_backup

transmission-edit -a new *
transmission-edit -d old *
rpl -i  new old *
@gbastien

This comment has been minimized.

Copy link

commented May 7, 2017

You may even use :

transmission-edit -r "old_tracker_substring" "new_tracker_substring" *

@gotgot

This comment has been minimized.

Copy link

commented Apr 8, 2018

Yep. needed. :)

@bmacd

This comment has been minimized.

Copy link

commented Apr 22, 2018

Yes please

@Stat1cV01D

This comment has been minimized.

Copy link

commented Apr 29, 2018

In the meantime I hope this little script helps - bt_trackers_replacer

@Zentriert

This comment has been minimized.

Copy link

commented May 10, 2018

Please add - there must be a way to emulate how uTorrent does it.

@mtaalas

This comment has been minimized.

Copy link

commented Sep 23, 2018

I'd like to see this as well.

It's security issue as well since if you accidentally (or URL is taken over etc.) add a tracker URL that's malicious to all your torrents (using a tracker list for example), you might want to check all your torrents through and remove it from all of them.

At this time it'll take hours to go through all the torrents for this manually and slowly.

@tartuffex

This comment has been minimized.

Copy link

commented Dec 1, 2018

Hi, I just created an account to respond to this. qBittorrent has been my main client for years now and I really love it... But the lack of this feature just forced me to update 370 torrents manually because the tracker's nnounce url changed. When I eventually format my computer and start from scratch, I will definitely make sure that the client I use has this feature before I actually need it... Please do something about this!

From a long-time user,

Have a good day

@s-kocher

This comment has been minimized.

Copy link

commented Dec 1, 2018

Hi, I just created an account to respond to this. qBittorrent has been my main client for years now and I really love it... But the lack of this feature just forced me to update 370 torrents manually because the tracker's nnounce url changed. When I eventually format my computer and start from scratch, I will definitely make sure that the client I use has this feature before I actually need it... Please do something about this!

From a long-time user,

Have a good day

Still on uTorrent 2.2.1 (2011) because of this lack of feature :(

@wrightwriter

This comment has been minimized.

Copy link

commented Jan 10, 2019

just write an autohotkey script to do it for you

@rujiel

This comment has been minimized.

Copy link

commented Jan 16, 2019

I need this feature so badly... yikes!

@AdKiller

This comment has been minimized.

Copy link

commented Jan 16, 2019

it's been 4 years. I don't think we will ever get this feature. sad.

@AbfSailor

This comment has been minimized.

Copy link

commented Jan 18, 2019

Very Sad. I have a lot of seeds. When the day comes that I have to update my tracker, I will jump to another client in a heartbeat.

@mzso

This comment has been minimized.

Copy link

commented Jan 18, 2019

@AbfSailor commented on 2019. jan. 18. 04:42 CET:

Very Sad. I have a lot of seeds. When the day comes that I have to update my tracker, I will jump to another client in a heartbeat.

How cruel you are, the devs will weep for the loss of you.

@AbfSailor

This comment has been minimized.

Copy link

commented Jan 21, 2019

It will be me who is weeping. I love the client. The client switch would be obligated and not preferred. :(

@AdKiller

This comment has been minimized.

Copy link

commented Jan 24, 2019

Some kind person has already done half the work here: https://bitbucket.org/rumanzo/qbtchangetracker/downloads/

https://github.com/rumanzo/qbtchangetracker/

Please incorporate this into qBittorrent. come on you smart people! you can do it!

@dzmitry-lahoda

This comment has been minimized.

Copy link

commented Mar 31, 2019

Please do it. I want each torrent i have to include local torrent announcement. So I am sure my local downloads from media server to laptop try to use local data as much as possible.

@Chocobo1

This comment has been minimized.

Copy link
Member

commented Jul 8, 2019

Asking for opinions here, what would you expect the "Edit trackers" dialog to show when editing trackers of multiple torrents? Should the dialog only show trackers if they are the same for all selected torrents otherwise empty (utorrent behavior), or show the common trackers that are present in selected torrents, or all trackers merged together from selected torrents?

@AdKiller

This comment has been minimized.

Copy link

commented Jul 8, 2019

@Chocobo1 I think like utorrent is the best behavior: show the trackers only if all trackers are the same, otherwise, show an empty box.

@5moufl

This comment has been minimized.

Copy link

commented Jul 8, 2019

I’d say show only the common trackers.
Useful for public torrents with many trackers.

@glassez

This comment has been minimized.

Copy link
Member

commented Jul 8, 2019

show only the common trackers.

I think it's best compromise way. It allows you to never reenter trackers that are already exists in all selected torrents.

@mzso

This comment has been minimized.

Copy link

commented Jul 8, 2019

@Chocobo1 commented on 2019. júl. 8. 13:02 CEST:

Asking for opinions here, what would you expect the "Edit trackers" dialog to show when editing trackers of multiple torrents? Should the dialog show all trackers if they are the same for all selected torrents otherwise empty (utorrent behavior), or show the common trackers that are present in selected torrents, or all trackers merged together from selected torrents?

I see no reason why common trackers shouldn't be shown. It's one better than only showing identical trackers. Some od private torrents might have more trackers added because of the tracker changing. Or just the website changing to add more trackers.

@Chocobo1

This comment has been minimized.

Copy link
Member

commented Jul 10, 2019

@thalieht @Piccirello
Any comments about this? #2428 (comment)

@Piccirello

This comment has been minimized.

Copy link
Member

commented Jul 10, 2019

I think showing common trackers is the best approach. We risk slightly confusing the user but also make this dialog box a lot more useful. Showing the full, unique list of trackers might be too confusing, despite being a bit more useful.

@JackDandy

This comment has been minimized.

Copy link

commented Sep 26, 2019

If only common trackers are shown, then there ought to be some indication that some trackers have been ignored otherwise a bad user mistake could happen. Consider, it would not be ideal if a bunch of items had trackers changed from url1 to url2, only to realise afterwards that some items selected actually had url3 and those url3's are now lost forever.

Perhaps place common trackers at the top of the list, and trackers that only exist in less than 100% of items in a list below - that gives the user warning that they need to refine the filter of their selected items before committing to what is an important change.

@mzso

This comment has been minimized.

Copy link

commented Sep 26, 2019

@JackDandy commented on 2019. szept. 26. 02:04 CEST:

Consider, it would not be ideal if a bunch of items had trackers changed from url1 to url2, only to realise afterwards that some items selected actually had url3 and those url3's are now lost forever.

Obviously in a case like that trackers that are not shown wouldn't be touched.

@JackDandy

This comment has been minimized.

Copy link

commented Sep 26, 2019

Obviously in a case like that trackers that are not shown wouldn't be touched.

So as an idea, perhaps deselect the modified items so that the user can act on the remaining selected unchanged items - that would be pretty quick and intuitive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
You can’t perform that action at this time.