Author Topic: Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent  (Read 8985 times)

napouser

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent
« Reply #45 on: September 12, 2018, 07:03:46 PM »
hi
last time i checked was quite impossible but
its been a long time does any1 managed to find a way to transfer global stats from ut to qbt?
have in mind stats ar stored in settings.dat


rumanzo

  • Member
  • **
  • Posts: 39
  • Karma: +4/-0
    • View Profile
Re: Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent
« Reply #46 on: September 12, 2018, 09:15:24 PM »
hi
last time i checked was quite impossible but
its been a long time does any1 managed to find a way to transfer global stats from ut to qbt?
have in mind stats ar stored in settings.dat

I didn't say it was impossible. Just need to use the QT framework. In my app, this is difficult to do, because binding with the framework is experimental and quite difficult to set up. And I do not know C/C++ well enough to implement this function in go, or to write on C/C++.

DeathStalker

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent
« Reply #47 on: November 09, 2018, 10:16:11 PM »
How close, realistically, are we to having this functionality?  This is the ONLY reason I have not migrated to QBT - I have ~2k titles in uT 2.2.1.

rumanzo

  • Member
  • **
  • Posts: 39
  • Karma: +4/-0
    • View Profile
Re: Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent
« Reply #48 on: November 09, 2018, 11:04:33 PM »
What do you mean, when say "this"?

DeathStalker

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent
« Reply #49 on: November 10, 2018, 12:23:44 AM »
Disappointed in the existing application on the ruby, which could not handle all my torrents, I wrote my own application on golang.
I tested it on my own torrent database (3k+) and test torrents on Bittorrent/uTorrent clients (version 3+).
Features:
  • Processing all torrents
  • Processing torrents with subdirectories and without subdirectories
  • Processing torrents with renamed files
  • Processing torrents with non-standard encodings (for example, cp1251)
  • Processing of torrents in the not ready state *
  • Save date, metrics, status. **
  • Import of tags and labels
  • Multithreading

* This torrents will not be done (0%) and will need force rehash
** The calculation of the completed parts is based only on the priority of the files in torrent

Don't forget before use make backup bittorrent\utorrent, qbittorrent folder. and config %APPDATA%/Roaming/qBittorrent/qBittorrent.ini. Close all this program before.

Usage:
1.) Help (from cmd or powerwhell)
Code: [Select]
C:\Users\user\Downloads> .\bt2qbt_v0.1_amd64.exe -h
Usage of C:\Users\user\Downloads\bt2qbt_v0.1_amd64.exe:
-c, --qconfig (= "C:\\Users\\user\\AppData\\Roaming\\qBittorrent\\qBittorrent.ini")
    qBittorrent config files (for write tags)
-d, --destination (= "C:\\Users\\user\\AppData\\Local\\qBittorrent\\BT_backup\\")
    Destination directory BT_backup (as default)
-s, --source (= "C:\\Users\\user\\AppData\\Roaming\\uTorrent\\")
    Source directory that contains resume.dat and torrents files
--without-labels  (= false)
    Do not export/import labels
--without-tags  (= false)
    Do not export/import tags

2.) If you just run application, it will processing torrents from %APPDATA%\uTorrent\ to %LOCALAPPDATA%\qBittorrent\BT_BACKUP\
Example:
Code: [Select]
It will be performed processing from directory C:\Users\user\AppData\Roaming\uTorrent\ to directory C:\Users\user\AppData\Local\qBittorrent\BT_backup\
Check that the qBittorrent is turned off and the directory C:\Users\user\AppData\Local\qBittorrent\BT_backup\ and config C:\Users\user\AppData\Roaming\qBittorrent\qBittorrent.ini is backed up.

Press Enter to start

Started
1/2 Sucessfully imported 1.torrent
2/2 Sucessfully imported 2.torrent

Press Enter to exit

3.) Run application from cmd or powershell with keys, if you want change source dir or destination dir, or export/import behavior
Example:
Code: [Select]
C:\Users\user\Downloads> .\bt2qbt_v0.1_amd64.exe -s C:\Users\user\AppData\Roaming\BitTorrent\
It will be performed processing from directory C:\Users\user\AppData\Roaming\BitTorrent\ to directory C:\Users\user\AppData\Local\qBittorrent\BT_backup\
Check that the qBittorrent is turned off and the directory C:\Users\user\AppData\Local\qBittorrent\BT_backup\ is backed up.

If there are any errors or if it help you - write there
[/quote]

I ran this, made the (apparent) adjustments, but it failed -


PS C:\Temp> C:\Temp> C:\Temp\> .\bt2qbt_v0.1_amd64.exe -h
>> >> Usage of C:\Temp\bt2qbt_v0.1_amd64.exe:
>> >> -c, --qconfig (= "C:\\Users\\username}\\AppData\\Roaming\\qBittorrent\\qBittorrent.ini")
>> >>     qBittorrent config files (for write tags)
>> >> -d, --destination (= "C:\\Users\\{username}\\AppData\\Local\\qBittorrent\\BT_backup\\")
>> >>     Destination directory BT_backup (as default)
>> >> -s, --source (= "J:\\Bit Torrent Clients\\uTorrent v2_2_1 (Build 25302) v3\\")
>> >>     Source directory that contains resume.dat and torrents files
At line:3 char:6
+ >> -c, --qconfig (= "C:\\Users\\{username}\\AppData\\Roaming\\qBitt ...
+      ~
Missing argument in parameter list.
At line:5 char:6
+ >> -d, --destination (= "C:\\Users\\{username}\\AppData\\Local\\qBi ...
+      ~
Missing argument in parameter list.
At line:7 char:6
+ >> -s, --source (= "J:\\Bit Torrent Clients\\uTorrent v2_2_1 (Build 2 ...
+      ~
Missing argument in parameter list.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : MissingArgument


I DO want to import the LABELS.

Also, I am clearly substituting {username} for the User folder.


Thanks for any assistance!!! :)


PS:  I don't suppose there's any chance to evolve this into a GUI where you could more easily browse for the applicable folders and select checkboxes for whether you want labels &/or tags.

EDIT:  Could it have something to do with the fact that I'm not using the Apps folder for uT, but the installation folder?  (I will create that folder and copy the files there as a test!)
« Last Edit: November 10, 2018, 12:40:34 AM by DeathStalker »

DeathStalker

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent
« Reply #50 on: November 10, 2018, 12:37:50 AM »
Now I have the .torrent files stored in various locations.  I was expecting this to parse out the info from the RESUME.DAT file itself, so it knows exactly where the titles are stored.  I'm not sure I see the necessity for the original .torrent files (I hope I'm wrong).

Thanks!

rumanzo

  • Member
  • **
  • Posts: 39
  • Karma: +4/-0
    • View Profile
Re: Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent
« Reply #51 on: November 10, 2018, 12:54:13 AM »
Now I have the .torrent files stored in various locations.  I was expecting this to parse out the info from the RESUME.DAT file itself, so it knows exactly where the titles are stored.  I'm not sure I see the necessity for the original .torrent files (I hope I'm wrong).

Thanks!
If I correctly understood the last two messages (the previous one is not very well formed):
1.) You need to get the latest version, that is 1.0. You may download at direct link in first post. I did not think that it is necessary to update the examples so that it was clear that you do not need use version 0.1
2.) If you do not want to import labels, then accordingly you need the --without-labels argument when run program, but it appeared in more recent versions.
3.) Torrent files that stored in various locations must be processed. At least I tested it, and all was fine.

Write here when you get the result, please.

DeathStalker

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent
« Reply #52 on: November 10, 2018, 12:55:58 AM »
Ok, upon re-reading your post, I ran JUST the EXE in the Downloads folder (properly named, of course) - it *appears* to be successful - at least the torrents it listed indicated successful.  It is taking quite some time for QBT to load (Not Responding but the mem usage is increasing) - ~2k torrents.  Will post an update if/when it successfully launches.


 

rumanzo

  • Member
  • **
  • Posts: 39
  • Karma: +4/-0
    • View Profile
Re: Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent
« Reply #53 on: November 10, 2018, 01:03:21 AM »
Ok, upon re-reading your post, I ran JUST the EXE in the Downloads folder (properly named, of course) - it *appears* to be successful - at least the torrents it listed indicated successful.  It is taking quite some time for QBT to load (Not Responding but the mem usage is increasing) - ~2k torrents.  Will post an update if/when it successfully launches.
For the first run qbittorrent, this is normal, it will work faster later. I imported about 4 thousand torrents, the same behavior.
In the output of the program at the end there was a message that some torrents were exported with errors?

DeathStalker

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent
« Reply #54 on: November 10, 2018, 01:09:35 AM »
No, no errors were reported, but there were issues with some uncompleted titles - QBT set them back to 0%, even though some were at 97%+.

DeathStalker

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent
« Reply #55 on: November 10, 2018, 01:25:51 AM »
Ok, so I actually have both running to test things - I have NO connections with QBT, but I do with uT.

I am concerned about the partially finished titles that apparently were reset to 0% and are re-downloading (especially those that are on ratio-based trackers).
  Upon further examination - it appears that it is not recognizing the .!ut extension of them, ignoring them, and creating new .!qB files.

Also, I noticed that some completed files were also not properly hashed, but manually removing the .!qB extension allowed them to be properly opened - this also happened with RAR-type files as well as PDFs.
« Last Edit: November 10, 2018, 03:51:37 AM by DeathStalker »

rumanzo

  • Member
  • **
  • Posts: 39
  • Karma: +4/-0
    • View Profile
Re: Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent
« Reply #56 on: November 11, 2018, 11:45:32 AM »
Ok, so I actually have both running to test things - I have NO connections with QBT, but I do with uT.

I am concerned about the partially finished titles that apparently were reset to 0% and are re-downloading (especially those that are on ratio-based trackers).
  Upon further examination - it appears that it is not recognizing the .!ut extension of them, ignoring them, and creating new .!qB files.

Also, I noticed that some completed files were also not properly hashed, but manually removing the .!qB extension allowed them to be properly opened - this also happened with RAR-type files as well as PDFs.

It's not a bug. I modify the first topic message:
* This torrents will not be done (0%) and will need force rehash
** The calculation of the completed parts is based only on the priority of the files in torrent
*** Partially downloaded torrents will be visible as 100% completed, but in fact you will need to do a rehash. Without rehash torrents not will be valid. This is due to the fact that conversion of .dat files in which parts of objects are stored is not implemented.