Author Topic: Migrate from uTorrent to qBittorrent easily  (Read 143160 times)

mzso

  • Newbie
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Migrate from uTorrent to qBittorrent easily
« Reply #120 on: November 09, 2017, 04:26:41 PM »
TriAnMan: Guys, I've fixed the thing - there was a problem with announce-list items.
Take the code here: https://gist.github.com/Cyberthing/cb49cc19cc5609f3db61

Thanks for the fix!
I'll update the first post as soon as I have some time.

since no update on first post i compiled it - it worked for me

https://drive.google.com/file/d/0B1UBcGJqDzc5S2E0aUVxMlJZa1U/view?usp=sharing

idk  programming or anything but something wouldn't compile when used in the paths presented in the script so i had to use my filepath  - hope this works

tested from utorrent 226 to qbt 334

still same usage as in original post

So does this add them as paused or running? The former would be a safer approach.
« Last Edit: November 09, 2017, 04:42:30 PM by mzso »

mzso

  • Newbie
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Migrate from uTorrent to qBittorrent easily
« Reply #121 on: November 09, 2017, 04:30:20 PM »
The safer way:
copy and paste tracker to each...

Another but more technical way:
mass copy the magnet links and paste them into a text editor.
Use find and replace to add the private tracker to the links.
copy and paste the links to qbt.
trackers will be merged for any torrent that has been detected as public.

The messy way:
Backup the .torrent files and remove them from the list keeping the files downloaded.
In options > bittorrent > add the private tracker to that auto add box
Now when you re-add the .torrent, the private tracker would be added. (That's if qbt detects the .torrent as public)
Remove the tracker from options when you're done.
Please note that you will lose any custom locations, category info. and so on. Be carefully... Test a few to understand what's going on.

So I guess this means there's no mass tracker edit feature for torrents? (I don't see any in the latest version either)
A huge blow because sometimes private trackers change, and changing a hundred torrents or more manually is quite brutal.

rumanzo

  • Member
  • **
  • Posts: 33
  • Karma: +4/-0
    • View Profile
Re: Migrate from uTorrent to qBittorrent easily
« Reply #122 on: December 29, 2017, 07:52:34 PM »
So I guess this means there's no mass tracker edit feature for torrents? (I don't see any in the latest version either)
A huge blow because sometimes private trackers change, and changing a hundred torrents or more manually is quite brutal.
Recently I have been training in golang programming. I can write a program (cli) for this purpose

UPD
I was bored. If there are errors, write to me.
Just do not forget to backup the directory %LOCALAPPDATA%\qBittorrent\BT_backup and close qBittorrent
https://qbforums.shiki.hu/index.php/topic,5625.msg27222.html#msg27222
https://bitbucket.org/rumanzo/qbtchangetracker/overview
https://bitbucket.org/rumanzo/qbtchangetracker/downloads/qbtchangetracker_x86_64.exe
https://bitbucket.org/rumanzo/qbtchangetracker/downloads/qbtchangetracker_i386.exe
« Last Edit: December 30, 2017, 08:49:45 PM by rumanzo »

aaaa1234

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Migrate from uTorrent to qBittorrent easily
« Reply #123 on: January 08, 2018, 04:54:20 PM »
Hi,

I have a problem using this, and I could not solve it at all.

I ran the command: ut2gt.exe "c:\Users\*****\AppData\Roaming\uTorrent\Resume.dat" "c:\users\*****\AppData\Local\qBittorrent\BT_backup"
where ***** is my user.

and I get this error: FATAL ERROR: Failed to get temp file name.

Any idea? I appreciate the help :) as i want to move away from utorrent piece of junk.

rumanzo

  • Member
  • **
  • Posts: 33
  • Karma: +4/-0
    • View Profile
Re: Migrate from uTorrent to qBittorrent easily
« Reply #124 on: January 15, 2018, 10:28:27 PM »
Anyone understand how it works? Author not active.

I rewrite part with res['have'].unpack('b*').first.scan(/./).map {|i| (i.to_i(2)*1) }.pack('C'*npieces) on golang, but it's not work.

Utorrent field resume["have"] not relevant to output field pieces such (it's hex)
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000020  00 00 00 00 00 00 00 00  00 00 00 00 f0 ff ff 0f       |................|
00000030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000040  00 00 00 00 00 00 00 00  00 00 00 00 00 00 f8 ff    |................|
00000050  ff ff 0f 00 00 00 00 00  00 00                                  |..........|

really must be

00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000020  00 00 00 00 00 00 00 00  00 00 00 00 0f ff ff f0       |................|
00000030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000040  00 00 00 00 00 00 00 00  00 00 00 00 00 00 1f ff     |................|
00000050  ff ff f0 00 00 00 00 00  00 00                                  |..........|

And if I slightly adapt the original resume["have"], it's works, but it's trial and error method (can't find any info). But ruby tool convert it relatively correctly (i don't know why). I wanted to unpack the original exe (its packed with ruby ocra), but I did not find a way to do this.

My func on golang look like:
func piecesconvert(s string, npieces *int) []byte {
   var newpieces  = make([]byte, 0 , *npieces)
   for _, c := range []byte(s) {
      var binString string
      binString = fmt.Sprintf("%s%.8b", binString, c)
      for _, d := range binString {
         if len(newpieces) == cap(newpieces) { break }
         chr, _ := strconv.Atoi(string(d))
         newpieces = append(newpieces, byte(chr))
      }
   }
   return newpieces
}

it's return correct byte string, but it's not valid in qtorrent (because utorrent\bittorrent 3.x\7.8 save data in special way, i guess).

Anybody help?

mzso

  • Newbie
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Migrate from uTorrent to qBittorrent easily
« Reply #125 on: January 22, 2018, 10:17:34 AM »
So I guess this means there's no mass tracker edit feature for torrents? (I don't see any in the latest version either)
A huge blow because sometimes private trackers change, and changing a hundred torrents or more manually is quite brutal.
Recently I have been training in golang programming. I can write a program (cli) for this purpose

UPD
I was bored. If there are errors, write to me.
Just do not forget to backup the directory %LOCALAPPDATA%\qBittorrent\BT_backup and close qBittorrent
https://qbforums.shiki.hu/index.php/topic,5625.msg27222.html#msg27222
https://bitbucket.org/rumanzo/qbtchangetracker/overview
https://bitbucket.org/rumanzo/qbtchangetracker/downloads/qbtchangetracker_x86_64.exe
https://bitbucket.org/rumanzo/qbtchangetracker/downloads/qbtchangetracker_i386.exe
Thanks. This'll come handy sometime for sure.

Peter

  • Administrator
  • Forum addict
  • *****
  • Posts: 1547
  • Karma: +37/-2
    • View Profile
Re: Migrate from uTorrent to qBittorrent easily
« Reply #126 on: January 25, 2018, 10:40:13 AM »
Thank you Rumanzo!
- qBittorrent team - server and forum administrator.
- Hungarian translation reviewer/moderator (+ translator).

Join the official qBittorrent Discord!
https://discord.gg/ma66Vv4

mohayta

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Migrate from uTorrent to qBittorrent easily
« Reply #127 on: February 24, 2018, 01:34:57 PM »
I've just registered to say thank you, it worked like a charm! I got merged my 307 torrents without any problem. Thanks!

toni91

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Migrate from uTorrent to qBittorrent easily
« Reply #128 on: February 26, 2018, 01:56:54 PM »
Hello there!

I tried both the compiled and source version, but both got error after about 430 torrents.
Then I saw that there had been forks/revisions since 2015, so I tried the newest by "naodesu" and it worked!
So, I have compiled it into a new .exe, then I made a batch-file for easier use and a readme-file.
You can find it here: https://drive.google.com/file/d/0B2_vv0F9iI_aOHJLRDNUbU1TVEE/view?usp=sharing
Please read the readme.txt

And please let me know if you have any problems.

I registered just to thank you for this :) successfully transferred 3800 torrents from uTorrent 3.2.3 to qBittorrent 4.0.3,  you saved me a lot of time :D

Ryrynz

  • Member
  • **
  • Posts: 45
  • Karma: +0/-6
    • View Profile
Re: Migrate from uTorrent to qBittorrent easily
« Reply #129 on: February 27, 2018, 10:32:48 AM »
Imported torrent but they don't work. I selected one to start from 0% and it did nothing.. I removed the torrent and readded and it downloaded fine (connection is okay with green plug)
Seeds show, peers show but no downloading occurs. This may also be why I have no uploading happening either..
Is there a quick way I can get these working? I'm shown as seeding them but nothing is transferring, I'm going to assume I'll just have to re-add everything.

Things seem to be seeding fine ATM, I think the torrents that are at 0% might be the only problem, I'll look into it.
« Last Edit: March 01, 2018, 12:49:34 AM by Ryrynz »

Mike_EE

  • Newbie
  • *
  • Posts: 17
  • Karma: +1/-0
    • View Profile
Re: Migrate from uTorrent to qBittorrent easily
« Reply #130 on: February 27, 2018, 04:17:15 PM »
I tried to run this using uTorrent 3.4.2 and obtained the following results

Quote
Parsing dat file...C:/Users/XXXXX/AppData/Local/Temp/ocr71CE.tmp/lib/ruby/gems
/2.4.0/gems/bencode-0.8.2/lib/bencode/decode.rb:34:in `initialize': Is a directory @ rb_sysopen - C:\Users\XXXXX\AppData\Roaming\uTorrent (Errno::EISDIR)
        from C:/Users/XXXXX/AppData/Local/Temp/ocr71CE.tmp/lib/ruby/gems/2.4.0
/gems/bencode-0.8.2/lib/bencode/decode.rb:34:in `open'
        from C:/Users/XXXXX/AppData/Local/Temp/ocr71CE.tmp/lib/ruby/gems/2.4.0
/gems/bencode-0.8.2/lib/bencode/decode.rb:34:in `load_file'
        from C:/Users/XXXXX/AppData/Local/Temp/ocr71CE.tmp/src/resumedat_2015.
rb:386:in `<main>'
Press any key to continue . . .

Any thoughts?

rumanzo

  • Member
  • **
  • Posts: 33
  • Karma: +4/-0
    • View Profile
Re: Migrate from uTorrent to qBittorrent easily
« Reply #131 on: February 27, 2018, 08:56:04 PM »
I tried to run this using uTorrent 3.4.2 and obtained the following results

Quote
Parsing dat file...C:/Users/XXXXX/AppData/Local/Temp/ocr71CE.tmp/lib/ruby/gems
/2.4.0/gems/bencode-0.8.2/lib/bencode/decode.rb:34:in `initialize': Is a directory @ rb_sysopen - C:\Users\XXXXX\AppData\Roaming\uTorrent (Errno::EISDIR)
        from C:/Users/XXXXX/AppData/Local/Temp/ocr71CE.tmp/lib/ruby/gems/2.4.0
/gems/bencode-0.8.2/lib/bencode/decode.rb:34:in `open'
        from C:/Users/XXXXX/AppData/Local/Temp/ocr71CE.tmp/lib/ruby/gems/2.4.0
/gems/bencode-0.8.2/lib/bencode/decode.rb:34:in `load_file'
        from C:/Users/XXXXX/AppData/Local/Temp/ocr71CE.tmp/src/resumedat_2015.
rb:386:in `<main>'
Press any key to continue . . .

Any thoughts?
Look like you adjust only bittorrent dir, without resume.dat file. Can you show you command?

Mike_EE

  • Newbie
  • *
  • Posts: 17
  • Karma: +1/-0
    • View Profile
Re: Migrate from uTorrent to qBittorrent easily
« Reply #132 on: February 27, 2018, 09:55:57 PM »
I tried to run this using uTorrent 3.4.2 and obtained the following results

Quote
Parsing dat file...C:/Users/XXXXX/AppData/Local/Temp/ocr71CE.tmp/lib/ruby/gems
/2.4.0/gems/bencode-0.8.2/lib/bencode/decode.rb:34:in `initialize': Is a directory @ rb_sysopen - C:\Users\XXXXX\AppData\Roaming\uTorrent (Errno::EISDIR)
        from C:/Users/XXXXX/AppData/Local/Temp/ocr71CE.tmp/lib/ruby/gems/2.4.0
/gems/bencode-0.8.2/lib/bencode/decode.rb:34:in `open'
        from C:/Users/XXXXX/AppData/Local/Temp/ocr71CE.tmp/lib/ruby/gems/2.4.0
/gems/bencode-0.8.2/lib/bencode/decode.rb:34:in `load_file'
        from C:/Users/XXXXX/AppData/Local/Temp/ocr71CE.tmp/src/resumedat_2015.
rb:386:in `<main>'
Press any key to continue . . .

Any thoughts?
Look like you adjust only bittorrent dir, without resume.dat file. Can you show you command?

I used the batch file and entered the paths when prompted. The command I ran was : "C:\Users\XXXXXXX\Downloads\ut2gt.exe", which then prompted me for the paths.

Mike_EE

  • Newbie
  • *
  • Posts: 17
  • Karma: +1/-0
    • View Profile
Re: Migrate from uTorrent to qBittorrent easily
« Reply #133 on: March 02, 2018, 10:28:29 PM »
Update:

I finally had some time to experiment and used the EXE directly instead of the batch file. This worked excellently and I was able to migrate 3400+ torrents to qBittorrent. Thanks to everyone involved in creating and maintaining the migration tool!

angryman

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-2
    • View Profile
Re: Migrate from uTorrent to qBittorrent easily
« Reply #134 on: March 03, 2018, 07:53:45 PM »
the .exe does not even work for me. as soon as i open it up it closes immediately with an error abouit the rest-file. thanks for wasting my time  >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:( >:(