qbittorrent / qBittorrent

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

download starts over after manually moving #9773

Open marcmy opened 6 years ago

marcmy commented 6 years ago

Please provide the following information

qBittorrent version and Operating System

4.1.3 Windows 10 (10.0.1xxxx)

What is the problem

I manually moved uncategorized files that were already 100% downloaded out of my main download folder and into the category folder which I wanted them in using Explorer, upon restarting QB naturally the program didn't know where the files were so I categorized the torrents and rechecked them, but they won't show as completed even though they are correctly categorized and in the correct folder. I also tried manual mode by pointing QB to the location where the files are, and it still tries to redownload them when I unpause them. I tried moving the files back to the original folder and pointing QB to that folder and I also tried disabling temp folder and !qB extension to no avail.

What is the expected behavior

Expected that QB will detect the file in the folder and try to resume it after recheck instead of redownloading.

Steps to reproduce

Close QB, move files from main folder to category folder, open QB, set category on torrent, recheck file

Thanks.

erasmux commented 5 years ago

Why would changing the torrent category on an existing torrent change its location?

Try using the "Set location..." option and selecting the correct folder. if it doesn't automatically start rechecking do a "force recheck" after that. If the recheck does not find the files check the save path in the torrent general properties + the files paths under Content - if this is the correct path to the files the recheck will succeed!

marcmy commented 5 years ago

Why would changing the torrent category on an existing torrent change its location?

Try using the "Set location..." option and selecting the correct folder. if it doesn't automatically start rechecking do a "force recheck" after that. If the recheck does not find the files check the save path in the torrent general properties + the files paths under Content - if this is the correct path to the files the recheck will succeed!

I have it set to relocate torrent so when I change category it also moves the torrent to the category's folder, as in c:\downloads\category. I did try set location (what I meant when I said I manually pointed QB to the location where the file is) and I checked the save path and file paths. If I disable temp folder by unchecking "keep incomplete torrents in..." and try to open destination folder, it opens the folder with the completed files, and if I restart the download, QB tries to redownload the files into that same location, appending the .!qB. And if I disable the .!qB extension, it seems to try to overwrite the completed files, because it has nowhere else to go.

erasmux commented 5 years ago

@marcmy

I am not sure about the "relocate torrent" as I didn't even notice this option before, but I agree it makes sense that setting "When torrent category changed" to "relocate torrent" should move the torrents on category change.

I do move torrents around quite a bit using the "Set location...", including the case where I have already moved the files manually and then use "Set location..." followed by a recheck to have qbittorrent find the files again. Every single time qbittorrent didn't find the files there was some mistake I had made (i.e. I moved the files to slightly different path then the one required or Set location to the subfolder where the torrent files already contain that subfolder). If the paths match qbittorrent should always find the files.

After the torrent has the correct path, what happens when you select "force recheck"? What is the percent completed after the recheck is done? Does it even try to read the files (for a large enough torrent it's quite obvious if the file is being read or if it fails instantly without finding the file)? If the files are being read but the torrent is not set to 100% complete, I would assume the contents of the file(s) somehow got botched. Otherwise, it has to be a mismatch between the torrent path + relative path of the files to the actual path the files are at. If you know how to run procmon you can check exactly at what path qbittorrent is searching for the files and what errors it receives.

marcmy commented 5 years ago

When I do a force recheck, it doesn't even do a recheck, I see a very brief "[F] Downloading" then it instantly goes back to Paused and the percentage stays at 0.0%.

Edit: Ok, this is pretty strange. I used procmon. It was saying path not found when I did recheck, and the path was the downloads\temp\file.!qB, so I again disabled temp folder and .!qB extension, as I did before, did recheck on selected torrents, and only one of them actually rechecked properly. Then I tried rechecking the others again, and they all worked this time. Weird!?

Everything seems to be fine now. All torrents have rechecked properly and finished "downloading". No idea what happened here.

FireCulex commented 5 years ago

9348