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

Windows specific questions, problems.
user637745
Member
Member
Posts: 26
Joined: Sat May 23, 2020 7:15 am

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

Post by user637745 »

rumanzo wrote: Fri Nov 27, 2020 1:59 pm
user637745 wrote: Fri Nov 27, 2020 1:49 pm Old thread im sorry, but this seems like something i need, unless there is a better known application(?)
But i cannot find the actual .exe? :)
Oh, it's time to change the starting description. You can find it there:
Releases: https://github.com/rumanzo/bt2qbt/releases
Nevermind im stupid and did not realize there was 10 pages in this thread, i looked on page1 and found it :P
However, i cannot get it to work.

i run this command

Code: Select all

.\deluge2qbt_v1.3_amd64.exe -s "D:\AppData\Roaming\deluge" -d "D:\Program Files\qBittorrent Portable X\profile\qBittorrent\data\BT_backup" --qconfig "D:\Program Files\qBittorrent Portable X\profile\qBittorrent\config\qBittorrent.ini"

Code: Select all

2020/11/27 15:35:08 Started
2020/11/27 15:35:08 Can't find torrent file D:\AppData\Roaming\deluge\state\f9f02f07ee9449697a4f269b12aeb27887ce42fd.torrent for f9f02f07ee9449697a4f269b12aeb27887ce42fd
2020/11/27 15:35:08 Can't create qBittorrent fastresume file D:\Program Files\qBittorrent Portable X\profile\qBittorrent\data\BT_backup\05eb80cb9276f135a6ed83ede451dcc4cc64ba10.fastresume
2020/11/27 15:35:08 Can't create qBittorrent fastresume file D:\Program Files\qBittorrent Portable X\profile\qBittorrent\data\BT_backup\97130282b632555e09559e1537c0bd0d19192d91.fastresume
- f9f02f07ee9449697a4f269b12aeb27887ce42fd.torrent has never exited, i dont know where this name comes from? The actual torrents in the deluge appdata-folder are named as the other 2 error messages = 05eb80cb9276f135a6ed83ede451dcc4cc64ba10.torrent and 97130282b632555e09559e1537c0bd0d19192d91.torrent

- "Can't create qBittorrent fastresume file" - it does create the .fastresume files

- No torrents are moved/copied to the destination, and even if i copy them manually from the appdata-deluge-folder and start that qbittorrent instance, there is no torrents loaded.
rumanzo
VIP
VIP
Posts: 126
Joined: Fri Dec 29, 2017 6:46 pm

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

Post by rumanzo »

user637745 wrote: Fri Nov 27, 2020 2:47 pm
rumanzo wrote: Fri Nov 27, 2020 1:59 pm
user637745 wrote: Fri Nov 27, 2020 1:49 pm Old thread im sorry, but this seems like something i need, unless there is a better known application(?)
But i cannot find the actual .exe? :)
Oh, it's time to change the starting description. You can find it there:
Releases: https://github.com/rumanzo/bt2qbt/releases
Nevermind im stupid and did not realize there was 10 pages in this thread, i looked on page1 and found it :P
However, i cannot get it to work.

i run this command

Code: Select all

.\deluge2qbt_v1.3_amd64.exe -s "D:\AppData\Roaming\deluge" -d "D:\Program Files\qBittorrent Portable X\profile\qBittorrent\data\BT_backup" --qconfig "D:\Program Files\qBittorrent Portable X\profile\qBittorrent\config\qBittorrent.ini"

Code: Select all

2020/11/27 15:35:08 Started
2020/11/27 15:35:08 Can't find torrent file D:\AppData\Roaming\deluge\state\f9f02f07ee9449697a4f269b12aeb27887ce42fd.torrent for f9f02f07ee9449697a4f269b12aeb27887ce42fd
2020/11/27 15:35:08 Can't create qBittorrent fastresume file D:\Program Files\qBittorrent Portable X\profile\qBittorrent\data\BT_backup\05eb80cb9276f135a6ed83ede451dcc4cc64ba10.fastresume
2020/11/27 15:35:08 Can't create qBittorrent fastresume file D:\Program Files\qBittorrent Portable X\profile\qBittorrent\data\BT_backup\97130282b632555e09559e1537c0bd0d19192d91.fastresume
- f9f02f07ee9449697a4f269b12aeb27887ce42fd.torrent has never exited, i dont know where this name comes from? The actual torrents in the deluge appdata-folder are named as the other 2 error messages = 05eb80cb9276f135a6ed83ede451dcc4cc64ba10.torrent and 97130282b632555e09559e1537c0bd0d19192d91.torrent

- "Can't create qBittorrent fastresume file" - it does create the .fastresume files

- No torrents are moved/copied to the destination, and even if i copy them manually from the appdata-deluge-folder and start that qbittorrent instance, there is no torrents loaded.
Is "D:\Program Files\qBittorrent Portable X\profile\qBittorrent\data\BT_backup" really exist?
user637745
Member
Member
Posts: 26
Joined: Sat May 23, 2020 7:15 am

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

Post by user637745 »

rumanzo wrote: Fri Nov 27, 2020 2:55 pm Is "D:\Program Files\qBittorrent Portable X\profile\qBittorrent\data\BT_backup" really exist?
yep
rumanzo
VIP
VIP
Posts: 126
Joined: Fri Dec 29, 2017 6:46 pm

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

Post by rumanzo »

user637745 wrote: Fri Nov 27, 2020 2:58 pm
rumanzo wrote: Fri Nov 27, 2020 2:55 pm Is "D:\Program Files\qBittorrent Portable X\profile\qBittorrent\data\BT_backup" really exist?
yep
I don't see anything else what it can be. I can made debug version, or may be you can build from debug branch?
user637745
Member
Member
Posts: 26
Joined: Sat May 23, 2020 7:15 am

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

Post by user637745 »

rumanzo wrote: Fri Nov 27, 2020 3:04 pm
user637745 wrote: Fri Nov 27, 2020 2:58 pm
rumanzo wrote: Fri Nov 27, 2020 2:55 pm Is "D:\Program Files\qBittorrent Portable X\profile\qBittorrent\data\BT_backup" really exist?
yep
I don't see anything else what it can be. I can made debug version, or may be you can build from debug branch?
i will write again if i need more help :) thank you
user637745
Member
Member
Posts: 26
Joined: Sat May 23, 2020 7:15 am

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

Post by user637745 »

rumanzo wrote: Fri Nov 27, 2020 3:04 pm
user637745 wrote: Fri Nov 27, 2020 2:58 pm
rumanzo wrote: Fri Nov 27, 2020 2:55 pm Is "D:\Program Files\qBittorrent Portable X\profile\qBittorrent\data\BT_backup" really exist?
yep
I don't see anything else what it can be. I can made debug version, or may be you can build from debug branch?
I tried with your first v0.1 release, that worked :o :)
rumanzo
VIP
VIP
Posts: 126
Joined: Fri Dec 29, 2017 6:46 pm

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

Post by rumanzo »

user637745 wrote: Fri Nov 27, 2020 3:14 pm
rumanzo wrote: Fri Nov 27, 2020 3:04 pm
user637745 wrote: Fri Nov 27, 2020 2:58 pm

yep
I don't see anything else what it can be. I can made debug version, or may be you can build from debug branch?
I tried with your first v0.1 release, that worked :o :)
oO, that's not good. Can you assist me with debug?
user637745
Member
Member
Posts: 26
Joined: Sat May 23, 2020 7:15 am

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

Post by user637745 »

rumanzo wrote: Fri Nov 27, 2020 3:20 pm
user637745 wrote: Fri Nov 27, 2020 3:14 pm
rumanzo wrote: Fri Nov 27, 2020 3:04 pm

I don't see anything else what it can be. I can made debug version, or may be you can build from debug branch?
I tried with your first v0.1 release, that worked :o :)
oO, that's not good. Can you assist me with debug?
I dont have much time, but i can try, what do i need to do
paulcx
Newbie
Newbie
Posts: 2
Joined: Fri Dec 04, 2020 4:33 pm

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

Post by paulcx »

This is just a long user comment on how it worked out for me, and things to watch for.

The original info & instructions presented in the first post were sometimes unclear and too short for me fully understand. (Still, many thanks to Rumanzo who coded it all in the first place!)

Hope this helps someone a little in understanding what the software can and can't do.

I was migrating from uTorrent to qBittorrent on Windows 10.
It worked for 3000+ torrents ....once I figured out getting the command lines just right.

- It kept the Category info that I had typed in for some torrents.

- It kept the "Added on" and "Completed on" dates, and my uploaded ratios for many years of torrents!
Otherwise my entire time history of torrenting would have been gone.
(I think this was what was meant by "Save date, metrics,status" in the thread's initial post)

-It did not save changes I made to the torrent name within the qBT window.
(E.g, a torrent might originally have been poorly named "s03" but missing the show title.) So unfortunately those occasional comments are gone (unless I look for them manually on screen when running uTorrent).

- I didn't use the Replace command to replace paths. I assume that's for changing where the downloads are stored.
I just did it in a separate step beforehand: After copying all the downloads to a new folder, Copying rather than Moving to have a backup, I used the Bencode software to find and replace all the path names in uTorrent's giant resume.dat file, to point to the right locations for .torrent and downloaded files. Bencode is out there on the web.

- Yes as stated one needs to deal with incomplete torrents individually. E.g, there were some old ones not quite seeded that I hoped would eventually have complete downloads. I had used the system where incomplete torrents were marked with ".!uT" (rather than keeping the file name unchanged). Then qBittorrent wouldn't find the file at all, so I'd find and replace .!uT with .!qB, and look for those torrents in qBT and Recheck them for % completion.

- For those having issues setting up the Windows command line, here's what I did as an example:
Ran Command Prompt as Admin. I used quotes below just because one of my path names had a space in it.
The command was:
-------------
bt2qbt_v1.8_amd64.exe -s "D:\qbt\= torrents" -d "C:\Users\[MyLogin]\AppData\Local\qBittorrent\BT_backup" -c "C:\Users\[MyLogin]\AppData\Roaming\qBittorrent\qBittorrent.ini"
-------------

The "-s" is supposed to be "Source directory that contains resume.dat and torrents files". I guess since I hadn't stored my torrents files in the default system drive folder for uTorrent stuff (....\Appdata\Roaming\...), I didn't have the resume.dat file in the same folder as the torrents files, so I copied it over to where the .torrent files were, so both would be in the same folder for this software to access.

The "-d" is supposed to be "Destination directory BT_backup". I didn't know what that meant but things only worked when I used the -d command. The BT_backup folder gets filled with .torrent files and .fastresume files, all with hashed file names. So you don't see the original usually readable .torrent file names. (Meanwhile, the readable torrent files are in that source directory mentioned for the -s command.)

The "-c" is supposed to be "Source directory that contains resume.dat and torrents files" but that's confusing, and is the same as what was written for "-s". Ignore that statement, and just put in a path that points to the file qBittorrent.ini, which is what Rumanzo also put in the first post. That's all that's needed. That file of course stores qBittorrents' preferences & options, which the software tries to transfer over as much as possible from uTorrent. Presumably some settings are transferred over, but many are not. E.g., qBT has its own default settings on maximum connections, connections per torrent, etc. Or for example Rate Limits are treated differently, the max up and down speeds, so I had to set my time-of-day based limits up again.
rumanzo
VIP
VIP
Posts: 126
Joined: Fri Dec 29, 2017 6:46 pm

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

Post by rumanzo »

First, thanks for feedback
paulcx wrote: Fri Dec 04, 2020 6:35 pm - It kept the "Added on" and "Completed on" dates, and my uploaded ratios for many years of torrents!
Otherwise my entire time history of torrenting would have been gone.
(I think this was what was meant by "Save date, metrics,status" in the thread's initial post)
I will note that bt2qbt not transfer global statistics, everything else that is possible to transfer, we will transfer.
paulcx wrote: Fri Dec 04, 2020 6:35 pm -It did not save changes I made to the torrent name within the qBT window.
(E.g, a torrent might originally have been poorly named "s03" but missing the show title.) So unfortunately those occasional comments are gone (unless I look for them manually on screen when running uTorrent).
You mean renamed torrent in utorrent\bittorrent transfers with original torrent name (s03, in your example)?
paulcx wrote: Fri Dec 04, 2020 6:35 pm - I didn't use the Replace command to replace paths. I assume that's for changing where the downloads are stored.
I just did it in a separate step beforehand: After copying all the downloads to a new folder, Copying rather than Moving to have a backup, I used the Bencode software to find and replace all the path names in uTorrent's giant resume.dat file, to point to the right locations for .torrent and downloaded files. Bencode is out there on the web.
Yes, that's what it was made for. Initially, the option was made for migration between platforms (for example, from Windows to Linux), it is necessary to change paths (e.g. "D:\\films\" to "/home/user/films"). But I have another tool for batch changing tracker or paths: https://github.com/rumanzo/qbtchangetracker
paulcx wrote: Fri Dec 04, 2020 6:35 pm - Yes as stated one needs to deal with incomplete torrents individually. E.g, there were some old ones not quite seeded that I hoped would eventually have complete downloads. I had used the system where incomplete torrents were marked with ".!uT" (rather than keeping the file name unchanged). Then qBittorrent wouldn't find the file at all, so I'd find and replace .!uT with .!qB, and look for those torrents in qBT and Recheck them for % completion.
I forgot about this option, and will make a note in the readme
paulcx wrote: Fri Dec 04, 2020 6:35 pm - For those having issues setting up the Windows command line, here's what I did as an example:
Ran Command Prompt as Admin. I used quotes below just because one of my path names had a space in it.
The command was:
-------------
bt2qbt_v1.8_amd64.exe -s "D:\qbt\= torrents" -d "C:\Users\[MyLogin]\AppData\Local\qBittorrent\BT_backup" -c "C:\Users\[MyLogin]\AppData\Roaming\qBittorrent\qBittorrent.ini"
-------------
It's correct, but for many users don't nessesary. 99% users can (and they really do) just run binary file and click few times enter. I've even seen similar instructions on some local forums ("1. download 2. run 3. enter 4. enter 5. done").
paulcx wrote: Fri Dec 04, 2020 6:35 pm The "-s" is supposed to be "Source directory that contains resume.dat and torrents files". I guess since I hadn't stored my torrents files in the default system drive folder for uTorrent stuff (....\Appdata\Roaming\...), I didn't have the resume.dat file in the same folder as the torrents files, so I copied it over to where the .torrent files were, so both would be in the same folder for this software to access.
If yours torrent files automatically saves to another directory, in resume.dat you will see full path to torrents, and bt2qbt understand it. Default path for resume.dat (if it is not portable version) - %APPDATA%/uTorrent
bt2qbt is set to standard location initially
paulcx wrote: Fri Dec 04, 2020 6:35 pm The "-d" is supposed to be "Destination directory BT_backup". I didn't know what that meant but things only worked when I used the -d command. The BT_backup folder gets filled with .torrent files and .fastresume files, all with hashed file names. So you don't see the original usually readable .torrent file names. (Meanwhile, the readable torrent files are in that source directory mentioned for the -s command.)
If you setup qbittorrent with default settings, BT_BACKUP will be %LOCALAPPDATA%\qBittorrent\BT_backup
bt2qbt is set to standard location initially
paulcx wrote: Fri Dec 04, 2020 6:35 pm The "-c" is supposed to be "Source directory that contains resume.dat and torrents files" but that's confusing, and is the same as what was written for "-s". Ignore that statement, and just put in a path that points to the file qBittorrent.ini, which is what Rumanzo also put in the first post. That's all that's needed.
Thanks, this is a bug. When I changed the library for working with flags, I made a mistake.
-с flag it's destination of qBittorrent.ini (I will fix readme in next release), it need for transfer tags.
paulcx wrote: Fri Dec 04, 2020 6:35 pm That file of course stores qBittorrents' preferences & options, which the software tries to transfer over as much as possible from uTorrent. Presumably some settings are transferred over, but many are not. E.g., qBT has its own default settings on maximum connections, connections per torrent, etc. Or for example Rate Limits are treated differently, the max up and down speeds, so I had to set my time-of-day based limits up again.
I didn't put in more features than I needed or what I could physically do. The program is not perfect, but it is better than it was before (some ruby stuff). The transfer of settings is not included in the functionality of the program.

In general, if you are not migrating between platforms, if you have standard installations of the uttorrent and qBittorrent, you don't need cmd or powershell and described flags above at all.
paulcx
Newbie
Newbie
Posts: 2
Joined: Fri Dec 04, 2020 4:33 pm

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

Post by paulcx »

Thanks Rumanzo.

I think there was just one point of yours for me to address, where you asked:
You mean renamed torrent in utorrent\bittorrent transfers with original torrent name (s03, in your example)?
.... after I had written:

-It did not save changes I made to the torrent name within the qBT window.
(E.g, a torrent might originally have been poorly named "s03" but missing the show title.) So unfortunately those occasional comments are gone (unless I look for them manually on screen when running uTorrent).
I may have been unclear, so I'll try to clarify:

When one is about to first download a torrent, one has a chance to change the name of the folder that will be used for the files, in addition to its location.
That wasn't the situation I was talking about.
(E.g., a new torrent might try to save as say "D:\MyDocs\Mytorrents\A History of Rome -uploaderXYZ-64kbps-mp3" and one changes it to something one prefers instead, like a path of "D:\MyDocs\Books\" and a folder titled "A History of Rome [audio]")

What I meant is that on the uTorrent or qBitTorrent screen, one will have all the rows listing all of ones torrents, and there one can change the Name that shows up for the torrent. It doesn't change file names or paths or anything, it just affects what is on screen. (One could argue that it is better to put comments into the "Category" or "Tags" fields instead!)
So that's where a torrent badly named "S03" could be renamed "The Sampsons s03 720p", or any torrent torrent given an added comment like "*** trying this torrent too in case the 720p one isn't seeded **".

Such Name changes can be made whether or not one actually changed the download folder name to something more descriptive (as described above).

So I just meant that such comments within the Name field, don't transfer over using your software.
Probably not something that a lot of people did anyway...
(Meanwhile, you do transfer over "Category" entries.)

My case overall did indeed seem more complex than for many people, as I had a lot of custom locations set up, keeping some things out of my operating system drive for example.

Thanks again for your software -- I finally dared to make the big move from an ancient version of uTorrent, never having upgraded it as some private trackers ban newer uTorrent versions for their behavior.
tctfox
Newbie
Newbie
Posts: 1
Joined: Mon Dec 21, 2020 7:42 pm

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

Post by tctfox »

Hei there

Does this work for deluge 2.x and Qbit 4.3.x ?
Thanks
rumanzo
VIP
VIP
Posts: 126
Joined: Fri Dec 29, 2017 6:46 pm

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

Post by rumanzo »

tctfox wrote: Mon Dec 21, 2020 7:44 pm Hei there

Does this work for deluge 2.x and Qbit 4.3.x ?
Thanks
Probably yes
rumanzo
VIP
VIP
Posts: 126
Joined: Fri Dec 29, 2017 6:46 pm

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

Post by rumanzo »

paulcx wrote: Thu Dec 10, 2020 2:17 am Thanks Rumanzo.

I think there was just one point of yours for me to address, where you asked:
You mean renamed torrent in utorrent\bittorrent transfers with original torrent name (s03, in your example)?
.... after I had written:

-It did not save changes I made to the torrent name within the qBT window.
(E.g, a torrent might originally have been poorly named "s03" but missing the show title.) So unfortunately those occasional comments are gone (unless I look for them manually on screen when running uTorrent).
I may have been unclear, so I'll try to clarify:

When one is about to first download a torrent, one has a chance to change the name of the folder that will be used for the files, in addition to its location.
That wasn't the situation I was talking about.
(E.g., a new torrent might try to save as say "D:\MyDocs\Mytorrents\A History of Rome -uploaderXYZ-64kbps-mp3" and one changes it to something one prefers instead, like a path of "D:\MyDocs\Books\" and a folder titled "A History of Rome [audio]")

What I meant is that on the uTorrent or qBitTorrent screen, one will have all the rows listing all of ones torrents, and there one can change the Name that shows up for the torrent. It doesn't change file names or paths or anything, it just affects what is on screen. (One could argue that it is better to put comments into the "Category" or "Tags" fields instead!)
So that's where a torrent badly named "S03" could be renamed "The Sampsons s03 720p", or any torrent torrent given an added comment like "*** trying this torrent too in case the 720p one isn't seeded **".

Such Name changes can be made whether or not one actually changed the download folder name to something more descriptive (as described above).

So I just meant that such comments within the Name field, don't transfer over using your software.
Probably not something that a lot of people did anyway...
(Meanwhile, you do transfer over "Category" entries.)

My case overall did indeed seem more complex than for many people, as I had a lot of custom locations set up, keeping some things out of my operating system drive for example.

Thanks again for your software -- I finally dared to make the big move from an ancient version of uTorrent, never having upgraded it as some private trackers ban newer uTorrent versions for their behavior.
I build new version with support to transfer modified torrent names (caption field from resume.dat). I think this is what you asked for
greatscott
Newbie
Newbie
Posts: 1
Joined: Thu Feb 18, 2021 2:26 pm

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

Post by greatscott »

rumanzo wrote: Sun Jan 10, 2021 2:01 pm I build new version with support to transfer modified torrent names (caption field from resume.dat). I think this is what you asked for
I registered on this forum just to say Thank You rumanzo!
Just did the conversion. Works like a charm. The new label migration feature really helped me save a lot of time. Wonderful tool!
Post Reply