qbittorrent / qBittorrent

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

2 torrents with same file won't move to new location if both are seeding data #18780

Open schepsis opened 1 year ago

schepsis commented 1 year ago

qBittorrent & operating system versions

qBittorrent 4.5.2 x64 Operating system: Windows 10 Pro 22H2 (10.0.19045) x64 Qt: 6.4.2 libtorrent-rasterbar: 1.2.18

What is the problem?

2 torrents on torrent list, both contain 1 file with same hash, same piece size, both seeding data, selecting both torrents and setting a new location will move second torrent to new location, the first torrent remains in old location, so I have the same file on 2 locations, first torrent on old location and second torrent on new location. The first torrent shows "Save path" on new location but the file is actually on old location, so I have same file on 2 locations.

Steps to reproduce

  1. Download 1 file from 1 tracker to 100%, file has 50GB size
  2. Add 1 torrent that contains the same file with exact hash and same piece size from another tracker with checked box on "Start torrent" and check box on "Skip hash check"
  3. I have 2 entries in torrent list
  4. Both torrents show upload data in MB/s
  5. Select both torrents and select "Set location..." and choose a folder on different partition
  6. "Save parth" changes instantly to the new location, even if file has 50GB size
  7. The second torrent in the list moves the file on new location (it shows "Moving" on Status column and then shows "Seeding")
  8. The first torrent in the list shows "Save path" on the new location but double click on the first torrent shows the file in the OLD location.
  9. I have 2 torrents, one has file in OLD location and the second torrent has file in NEW location. This means I have the same file on 2 locations, probably because first torrent is locked because it's seeding.

Additional context

I remember that the save path changes instantly with qBittorrent on newer versions than 4.4.2. Haven't tested 4.4.0 and 4.4.1 On qBittorrent 4.3.9 x64, the save path changed only after the file was moved, not instantly after setting a new location. So on 4.3.9 x64 after setting a new location, the second torrent will move to NEW location and the first torrent will start hash checking and then both torrents will show "Seeding" and both torrents will be on new location. On 4.4.2+ the first torrent won't move if the first torrent is locked because it's seeding data. The client already assume the data is on NEW location so it won't move it.

Log(s) & preferences file(s)

No response

Arturoe1 commented 1 year ago

i am having similar issue: i have a torrent with different files. The owner is uploading a new torrent with the same files and hashes, just adding the new files, it is more efficient than having the re-download the full package.

Qbit keeps the torrents in "Moving" and the behavior is not like expected. I would expect qBit to be able to handle those 2 torrents or at least pause one of them once the file checking is done (preferably the older one) .