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

rumanzo

  • Member
  • **
  • Posts: 35
  • Karma: +4/-0
    • View Profile
Now this not import from deluge. I can see how the data is stored in the Deluge and at leisure to write a fork. Wait
Great! Thank you rumanzo!
Good news! Both of them uses libtorrent, this makes work much easier, yesterday I almost finished, only thing left is to finish processing the labels. I'm having trouble choosing whether to import labels as labels, or as tags? or export both, and then who will need to remove the excess?

IronMan

  • Newbie
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
it says in the topic utorrent 3.x
does it anyway work with utorrent 2.x ?

Also does it work if you already have a working qbittorrent ?
without losing that info ?

rumanzo

  • Member
  • **
  • Posts: 35
  • Karma: +4/-0
    • View Profile
it says in the topic utorrent 3.x
does it anyway work with utorrent 2.x ?

Also does it work if you already have a working qbittorrent ?
without losing that info ?
I did not check, but it should work theoretically with version 2 as well. As a maximum, you will need to turn off the import of tags. And you can import in already existing qBittorrent, but I still advise you to make backups

rumanzo

  • Member
  • **
  • Posts: 35
  • Karma: +4/-0
    • View Profile
Now this not import from deluge. I can see how the data is stored in the Deluge and at leisure to write a fork. Wait
Great! Thank you rumanzo!
I found a time, and I finished it. Surface tested, if there are errors tell me.

IronMan

  • Newbie
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
I did not check, but it should work theoretically with version 2 as well. As a maximum, you will need to turn off the import of tags. And you can import in already existing qBittorrent, but I still advise you to make backups

I tested it and it worked,
Had to force shutdown qbittorrent and recover the backup.
Because it was moving all my files from the original destination to the download location from qbittorrent.

rumanzo

  • Member
  • **
  • Posts: 35
  • Karma: +4/-0
    • View Profile
I did not check, but it should work theoretically with version 2 as well. As a maximum, you will need to turn off the import of tags. And you can import in already existing qBittorrent, but I still advise you to make backups

I tested it and it worked,
Had to force shutdown qbittorrent and recover the backup.
Because it was moving all my files from the original destination to the download location from qbittorrent.
Do not quite understand what the problem was. And you probably mean copying, not moving?

IronMan

  • Newbie
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Could be it was copying all my episodes to the download drive.
But my download drive isn't that big.
So I got all my collected episodes on other drives and it should stay there and seed from that location where it's stored now.
And not copy or move the files.

SupaMonkey

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Hi Rumanzo,
Been really busy - but finally got around to testing your deluge > qbittorrent tool.

Feedback:
I have 2175 total torrents in deluge
Your tool only picked up 1726

 - I thought this is because the remaining 449 are all on 0 bytes - but I checked this, and there are actually 657 on 0 bytes - but im pretty sure its related

of the 1726, it imported 1518/1726 Sucessfully imported
After that, it started throwing out errors like:
Can't find torrent file C:\Users\myusername\AppData\Roaming\deluge\state\3bd0401f05be1d70ead47216a2d021b91138084f.torrent for 3bd0401f05be1d70ead47216a2d021b91138084f

a handful of them had a different error:
Can't decode torrent file C:\Users\myusername\AppData\Roaming\deluge\state\ed5dfed132c31bb94ab2724e0fec96940a7685c0.torrent for ed5dfed132c31bb94ab2724e0fec96940a7685c0


ReallyCoolName

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Hello, I have a feedback too.
Thanks for your program, it's cool.

The last added torrent I have is a magnet link, and your program didn't handle it properly:
724/723 Can't decode torrent file C:\Users\<username>\AppData\Roaming\uTorrent\magnet:
?xt=urn:btih:<hash>&dn=<name> for magnet:?
xt=urn:btih:<hash>&dn=<name>


Everything else is just fine.

rumanzo

  • Member
  • **
  • Posts: 35
  • Karma: +4/-0
    • View Profile
Hi Rumanzo,
Been really busy - but finally got around to testing your deluge > qbittorrent tool.

Feedback:
I have 2175 total torrents in deluge
Your tool only picked up 1726

 - I thought this is because the remaining 449 are all on 0 bytes - but I checked this, and there are actually 657 on 0 bytes - but im pretty sure its related

of the 1726, it imported 1518/1726 Sucessfully imported
After that, it started throwing out errors like:
Can't find torrent file C:\Users\myusername\AppData\Roaming\deluge\state\3bd0401f05be1d70ead47216a2d021b91138084f.torrent for 3bd0401f05be1d70ead47216a2d021b91138084f

a handful of them had a different error:
Can't decode torrent file C:\Users\myusername\AppData\Roaming\deluge\state\ed5dfed132c31bb94ab2724e0fec96940a7685c0.torrent for ed5dfed132c31bb94ab2724e0fec96940a7685c0

The torrents that occupy 0 bytes should also be imported. What are some errors except the missing torrent files were? And I ask you to check whether there are actually torrent files with given names (maybe in another place?). Or are they invalid?

Hello, I have a feedback too.
Thanks for your program, it's cool.

The last added torrent I have is a magnet link, and your program didn't handle it properly:
724/723 Can't decode torrent file C:\Users\<username>\AppData\Roaming\uTorrent\magnet:
?xt=urn:btih:<hash>&dn=<name> for magnet:?
xt=urn:btih:<hash>&dn=<name>


Everything else is just fine.

I watched the processing of magnet references. If the link is valid, the torrent is downloaded and the link changes to a torrent file. I suppose these torrents with magnet links are invalid?

ReallyCoolName

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
I suppose these torrents with magnet links are invalid?

No, it's valid torrents, but it didn't load additional info by DHT yet when I used your tool.

rumanzo

  • Member
  • **
  • Posts: 35
  • Karma: +4/-0
    • View Profile
I suppose these torrents with magnet links are invalid?

No, it's valid torrents, but it didn't load additional info by DHT yet when I used your tool.
OK, we'll fix it, I'll need your help. But I will have no time at least 2 weeks.

Peter

  • Administrator
  • Forum addict
  • *****
  • Posts: 1551
  • Karma: +37/-2
    • View Profile
Amazing script, just helped a user on Discord with it.
Deluge version was used.

- You have to replace the line 10:
Code: [Select]
OLD: "launchpad.net/gnuflag"
NEW: "github.com/juju/gnuflag"

- I had to install the "Go deps" by hand:
Code: [Select]
go get github.com/fatih/color
go get github.com/go-ini/ini
go get github.com/zeebo/bencode
go get github.com/juju/gnuflag

- Then I just used this command (which is duh):
Code: [Select]
go run deluge2qbt-fixed.go -c ~/.config/qBittorrent/qBittorrent.conf -d ~/.local/share/data/qBittorrent/BT_backup/ -s ~/.config/deluge/
Again, thank you OP for the wonderful, superb work. It worked like a charm.
- qBittorrent team - server and forum administrator.
- Hungarian translation reviewer/moderator (+ translator).

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

rumanzo

  • Member
  • **
  • Posts: 35
  • Karma: +4/-0
    • View Profile
Amazing script, just helped a user on Discord with it.
Deluge version was used.

- You have to replace the line 10:
Code: [Select]
OLD: "launchpad.net/gnuflag"
NEW: "github.com/juju/gnuflag"

- I had to install the "Go deps" by hand:
Code: [Select]
go get github.com/fatih/color
go get github.com/go-ini/ini
go get github.com/zeebo/bencode
go get github.com/juju/gnuflag

- Then I just used this command (which is duh):
Code: [Select]
go run deluge2qbt-fixed.go -c ~/.config/qBittorrent/qBittorrent.conf -d ~/.local/share/data/qBittorrent/BT_backup/ -s ~/.config/deluge/
Again, thank you OP for the wonderful, superb work. It worked like a charm.

Peter, I'm glad to see that!
The official source of gnuflag is located in the repository launchpad and they use the vcs bazaar. You may install bazaar on windows or linux, and do "go get -v" from the root of project directory, go download all sources automatically. But I'm still glad that you did it. Do you write on golang?
By the way, I obviously need to compile a binary file for Linux?
« Last Edit: August 13, 2018, 10:03:53 AM by rumanzo »

rumanzo

  • Member
  • **
  • Posts: 35
  • Karma: +4/-0
    • View Profile
Re: Windows tool for migration from Bittorrent/uTorrent/Deluge to qBittorrent
« Reply #44 on: September 02, 2018, 10:34:09 PM »
I suppose these torrents with magnet links are invalid?

No, it's valid torrents, but it didn't load additional info by DHT yet when I used your tool.
We can try to fix this, are you ready?


I'am also compiled version deluge2qbt for Linux
« Last Edit: September 03, 2018, 01:38:24 AM by rumanzo »