Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent

Windows specific questions, problems.
rumanzo
VIP
VIP
Posts: 141
Joined: Fri Dec 29, 2017 6:46 pm

Re: Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent

Post by rumanzo »

ionGL wrote: Fri Mar 05, 2021 8:04 pm
rumanzo wrote: Fri Mar 05, 2021 7:07 pm Did you mean that problem only with not fully completed torrents?
No. The problem with wrong Size and Remaining values is with torrents that are not even started!
Force recheck on those does absolutely nothing.

I din another test, on a 3rd fresh new computer, with windows8 64. I even tested older versions of qBittorrent, but it made no difference. The findings:

I used bt2qbt_v1.4 and bt2qbt_v1.9 only 1 .torrent to compare the resulting .fastresume.

As i was playing, i only changed a letter after qBt-name45: in the .fastresume generated by 1.9 to see if it updates after i start qBittorrent.

It did update the name and it also now sees the CORECT values for size and remaining.

I generated a new .fastresume with the same .torrent and resume.dat by running bt2qbt_v1.9 and again the values for size and remaining are wrong.

Then if i open the .fastresume and even in an empty space if i hit backspace and then space, just a single change that triggers notepad to want to save the file is enough for qBittorrent to pick up the correct values for everything.

Does this make any sense?
Try this build https://disk.yandex.ru/d/SVY4Li-RfzXuyg ? If it's ok, I will do new release
ionGL

Re: Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent

Post by ionGL »

That's what i'm talking about!

Did a quick test on my main system and it picked up the correct values, including edited names. 8)

I will play around to confirm it's all good tomorrow morning, but at this point nothing abnormal sticks out.

Awesome, awesome work!

What do you think caused my issue and how did you fix it? O0

------------------

Edit: posted more feedback after the reply
Last edited by ionGL on Fri Mar 05, 2021 9:32 pm, edited 2 times in total.
rumanzo
VIP
VIP
Posts: 141
Joined: Fri Dec 29, 2017 6:46 pm

Re: Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent

Post by rumanzo »

ionGL wrote: Fri Mar 05, 2021 9:13 pm That's what i'm talking about!

Did a quick test on my main system and it picked up the correct values, including edited names. 8)

I will play around to confirm it's all good tomorrow morning, but at this point nothing abnormal sticks out.

Awesome, awesome work!

What do you think caused my issue and how did you fix it? O0
I'm revert this commit https://github.com/rumanzo/bt2qbt/commi ... 16e5a56081 . I see no reason for this behavior in the libtorrent documentation, but most likely I will leave it that way, since the expected result.
ionGL

Re: Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent

Post by ionGL »

Here is an observation with .torrents that are "Finished" in utorrent but had (for example) 2 of 4 files selected. Those .torrents are picked up by qBittorrent as "Paused" and have the "Remaining" value the same as the excluded (unticked) files, even though qBittorrent sees that file as unticked.

Force recheck does not repair that torrent to put it in the correct state, that would be "completed".

Rick clicking a file in the torrent and selecting priority - do not download, or tick -> untick any file not originally selected for download, repairs the torrent and puts in the correct, completed status.
ionGL

Re: Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent

Post by ionGL »

Yeah, something is not right for .torrents that didn't have all the files selected for download.

Example: A 1GB .torrent with 10x100MB files. Two files were selected for download, so the Remaining value should be 200MB, right?

After conversion, qBittorrent sees 2 file ticked, 8 unticked, but for "Remaining" it sees the total size of the .torrent (1GB in this example), not 200MB.

Force recheck does not fix this issue.

Ticking any file in content or changing the priority of any file instantly updates the correct "Remaining" value.

Does this make sense?
ionGL

Re: Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent

Post by ionGL »

Went at it again an tested all the releases for my "Example: A 1GB .torrent with 10x100MB files." from earlier.

v1.0, v1.1, v1.2, v1.3, all of them get the values right for "Total Size", "Size", "Remaining", file priorities are spot on.

Starting from v1.4, the "Total Size" is correct, but "Size" (the value for the selected files) and "Remaining" are messed up. They are given the same value as "Total Size".

Force recheck does nothing, as this is a torrent that has not been started yet.

I think this could be fixed if v1.3 gets it right.
ionGL

Re: Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent

Post by ionGL »

I got yet another new computer to test, windows7 x64 this time.

- Installed fresh utorrent 2.2.1 and fresh qBittorrent 4.3.3 (then many older versions to see if it makes any difference and it doesn't)

- Loaded 1 .torrent with multiple files into utorrent, selected only 2 files, exit.

- Used all bt2qbt releases from v1.0 to v1.10.

- From v1.0 to v1.3, the values for total size, size and remaining are picked up correctly, as seen here: https://i.postimg.cc/GhJkXTHb/v1-3.jpg

- Starting with v1.4, the values for size and remaining are wrong: https://i.postimg.cc/vHMnx8Xk/v1-4-and-up.jpg

I think a v1.3 with "Transfer torrent modified names" would save me.
ionGL

Re: Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent

Post by ionGL »

rumanzo, please, can you help with a special build so i can make the jump from this old utorrent 2.2.1 thing?

After days of testing on multiple computers, v1.3 is the last version that gets all the values right for me. A v1.3 with the only the "Transfer torrent modified names" feature added could get me in business.

I'm also willing to test any other build that you think could solve this error in picking up the correct values for size and remaining.

Thanks in advance if you decide to build it.
rumanzo
VIP
VIP
Posts: 141
Joined: Fri Dec 29, 2017 6:46 pm

Re: Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent

Post by rumanzo »

Sorry for the long answer, I don't have much time right now, I will check everything later and give feedback.
ionGL

Re: Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent

Post by ionGL »

Thanks. Whenever you'll have time to build something, i will be waiting to test.

I thought you got it with v1.10, but i soon discovered the bug introduced since v1.4, that messed up the remaining and size values for torrents with partial selections.
rumanzo
VIP
VIP
Posts: 141
Joined: Fri Dec 29, 2017 6:46 pm

Re: Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent

Post by rumanzo »

I checked. Try this build https://yadi.sk/d/epooAethim9qOw
Changes: https://github.com/rumanzo/bt2qbt/compa ... xremaining
For incomplete torrents it must will be correct total size and remaining size, progress must be 0% and you must do force recheck, but all sizes must be correct.
ionGL

Re: Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent

Post by ionGL »

Thanks for building, rumanzo. I got and tested this latest one. Still something is wrong.

This is how it picks up a torrent with partial selection: https://i.postimg.cc/CKPfXSTt/v1-10-14march2021.jpg

Force recheck does nothing, the values for "Size" (corresponding to "Selected Size" in utorrent) and "Remaining" are not the right ones.

The exact same torrent and selection done with v1.3, everything is picked up just fine, minus the edited torrent name: https://i.postimg.cc/GphyX9NG/v1-3-14march2021.jpg

Since v1.4 something was introduced that messed up the "Size" and "Remaining" for torrents with partial selections.
rumanzo
VIP
VIP
Posts: 141
Joined: Fri Dec 29, 2017 6:46 pm

Re: Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent

Post by rumanzo »

Oookey, I think I found it. Please check it
https://github.com/rumanzo/bt2qbt/compa ... xremaining
https://disk.yandex.ru/d/l8CyAKKzCSIQJA

UPD. found a bug, fixed it, redownload file
ionGL

Re: Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent

Post by ionGL »

This is getting close!

.torrents with multiple files and partial selections are fixed!
.torrents with multiple files and complete selections are ok too!

But now something regressed and .torrents with ONE file are picked up with wrong size and remaining values: https://i.postimg.cc/L5gVTv5J/v1-10-tes ... ch2021.jpg

Of course, v1.3 is still king and picks up everything just fine for the 3 scenarios:
https://i.postimg.cc/fLrKm1z4/v1-3-test ... ch2021.jpg

From v1.4 - multiple files, partial selection starts to go wrong - https://i.postimg.cc/hvh7bGCM/v1-4-14march2021.jpg

And from v.1.5 it all goes wrong - https://i.postimg.cc/cCjtDN2W/v1-5-14march2021.jpg

---------------

Edit: As i posted this reply, you posted the update. Testing now!
Last edited by ionGL on Sun Mar 14, 2021 2:51 pm, edited 1 time in total.
rumanzo
VIP
VIP
Posts: 141
Joined: Fri Dec 29, 2017 6:46 pm

Re: Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent

Post by rumanzo »

ionGL wrote: Sun Mar 14, 2021 2:48 pm This is getting close!

.torrents with multiple files and partial selections are fixed!
.torrents with multiple files and complete selections are ok too!

But now something regressed and .torrents with ONE file are picked up with wrong size and remaining values: https://i.postimg.cc/L5gVTv5J/v1-10-tes ... ch2021.jpg

Of course, v1.3 is still king and picks up everything just fine for the 3 scenarios:
https://i.postimg.cc/fLrKm1z4/v1-3-test ... ch2021.jpg

From v1.4 - multiple files, partial selection starts to go wrong - https://i.postimg.cc/hvh7bGCM/v1-4-14march2021.jpg

And from v.1.5 it all goes wrong - https://i.postimg.cc/cCjtDN2W/v1-5-14march2021.jpg
I found a bug and fixed it. Can you recheck problem with one file in torrent?

Also, I think in version 1.3 all ok, because it's adapt for older version libtorrent, that doesn't use PiecePriority at all, and newer version of qBittorrent, with newer version libtorrent appending this field on first run for all torrents.
Post Reply