qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
28.48k stars 3.99k forks source link

Merging trackers settings for WebUI #20342

Open Doty1154 opened 9 months ago

Doty1154 commented 9 months ago

qBittorrent & operating system versions

qBittorrent: 4.6.2 x64 Operating system: Fedora 39 Server Qt: 6.6.0 libtorrent-rasterbar: 2.0.9.0

What is the problem?

When using the desktop version of Qbitorrent you're able to merge trackers into already downloading torrents. There's a option within the desktop gui for this. However when using the qbittorrent-nox webui there is no option for this at all. Screenshot_20240127_171606 image

I've tried also simply copying the config line from the qBittorrent.conf "MergeTrackersEnabled=true" to the conf doesn't seem to be respected and simply get's removed when the service restarts.

Steps to reproduce

No response

Additional context

No response

Log(s) & preferences file(s)

No response

shrizza commented 9 months ago

I just recently installed the nox version of qbittorrent and have also been wondering about this. I'm glad you're bringing it up.

MONaH-Rasta commented 5 months ago

For those like me who will be looking for this, here is the solution: https://github.com/qbittorrent/qBittorrent/issues/19251#issuecomment-2040619303 P.S. make sure to stop qbittorrent before editing config ;)

taw123 commented 4 months ago

@MONaH-Rasta Doesn't work as the poster mentioned in the closed reference YOU cited. Also of you look at the ORIGINAL post here it says exactly with in turn happened to me... Even if you MANUALLY edit the file the line if purged when you bring the server back up....

I JUST tried this with qBit-nox.

  1. Shut down docker container
  2. added Session\MergeTrackersEnabled=true to the BitTorrent section of /config/qBittorrent.conf
  3. Brought container back up
  4. tried to add duplicate PUBLIC torrents with additional seeds
  5. Still get msg Detected an attempt to add a duplicate torrent. Merging of trackers is disabled.
  6. Went and looked at the config file and line is gone from the config file... I could add again butt really don't want to go through all that trouble with the long restart unless someone has a reasonable idea to try.

Unlike the original poster who vanished after they said it didn't work I'll stay here and provide data if devs want.

Environment: Bittorrent: v4.6.5 (aka qbit-nox) Libtorrent: 1.2.19.0 Linux

Deployment: Docker (compose) Image: Hotio (https://github.com/hotio/qbittorrent) Arch: AMD64

Let me know what else You would like for details. Would love to get this in webUI as mentioned, but willing to hack thee config file for now if that we're to work and not get overwritten/deleted. FYI ONLY that change was removed from the config file so it's not likeee I don't know how to set up a persistent data store in docker ;)

MONaH-Rasta commented 4 months ago

@taw123, you added it wrong.

[BitTorrent]
MergeTrackersEnabled=true
Session\AddTorrentPaused=true
...
skomerko commented 2 months ago

@glassez, I wanted to add "Merge trackers to existing torrents" option to the WebUI, just like https://github.com/qbittorrent/qBittorrent/pull/21223, but during my tests I noticed that trackers are only merged when this dialog is used:

image

Nothing happens (trackers are not merged) when "Upload local torrent" dialog is used. Both work in the GUI.

glassez commented 2 months ago

@skomerko Well, I figured it out. I will provide a patch soon.

glassez commented 2 months ago

@skomerko Well, I figured it out. I will provide a patch soon.

21299 should take care of it. Could you test it?

stalkerok commented 2 months ago

If I understand the problem correctly, I've written about it before. https://github.com/qbittorrent/qBittorrent/issues/19251#issuecomment-2156072029