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

Windows specific questions, problems.

Moderators: Moderator, Global Moderator

rumanzo
Member
Member
Posts: 64
Joined: Fri Dec 29, 2017 6:46 pm

Re: Windows CLI tool for migration from Bittorrent/uTorrent (3.x) to qBittorrent

Post by rumanzo » Tue Jul 10, 2018 6:29 am

[quote="SupaMonkey"]
[quote="rumanzo"]
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
[/quote]
Great! Thank you rumanzo!
[/quote]
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
Newbie
Posts: 17
Joined: Sun Mar 18, 2018 1:30 pm

Re: Windows CLI tool for migration from Bittorrent/uTorrent (3.x) to qBittorrent

Post by IronMan » Sat Jul 14, 2018 5:06 pm

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
Member
Posts: 64
Joined: Fri Dec 29, 2017 6:46 pm

Re: Windows CLI tool for migration from Bittorrent/uTorrent (3.x) to qBittorrent

Post by rumanzo » Sun Jul 15, 2018 8:56 am

[quote="IronMan"]
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 ?
[/quote]
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
Member
Posts: 64
Joined: Fri Dec 29, 2017 6:46 pm

Re: Windows CLI tool for migration from Bittorrent/uTorrent (3.x) to qBittorrent

Post by rumanzo » Mon Jul 16, 2018 11:15 pm

[quote="SupaMonkey"]
[quote="rumanzo"]
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
[/quote]
Great! Thank you rumanzo!
[/quote]
I found a time, and I finished it. Surface tested, if there are errors tell me.

IronMan
Newbie
Newbie
Posts: 17
Joined: Sun Mar 18, 2018 1:30 pm

Re: Windows CLI tool for migration from Bittorrent/uTorrent (3.x) to qBittorrent

Post by IronMan » Tue Jul 17, 2018 4:45 am

[quote="rumanzo"]
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
[/quote]

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
Member
Posts: 64
Joined: Fri Dec 29, 2017 6:46 pm

Re: Windows CLI tool for migration from Bittorrent/uTorrent (3.x) to qBittorrent

Post by rumanzo » Tue Jul 17, 2018 5:56 am

[quote="IronMan"]
[quote="rumanzo"]
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
[/quote]

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.
[/quote]
Do not quite understand what the problem was. And you probably mean copying, not moving?

IronMan
Newbie
Newbie
Posts: 17
Joined: Sun Mar 18, 2018 1:30 pm

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

Post by IronMan » Tue Jul 17, 2018 9:13 pm

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
Newbie
Posts: 4
Joined: Mon Jul 09, 2018 6:17 am

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

Post by SupaMonkey » Thu Aug 09, 2018 7:34 am

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
Member
Member
Posts: 26
Joined: Thu Aug 09, 2018 9:08 pm

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

Post by ReallyCoolName » Thu Aug 09, 2018 9:24 pm

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
Member
Posts: 64
Joined: Fri Dec 29, 2017 6:46 pm

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

Post by rumanzo » Thu Aug 09, 2018 9:53 pm

[quote="SupaMonkey"]
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
[/quote]

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?

[quote="ReallyCoolName"]
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.
[/quote]

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
Member
Member
Posts: 26
Joined: Thu Aug 09, 2018 9:08 pm

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

Post by ReallyCoolName » Thu Aug 09, 2018 10:16 pm

[quote="rumanzo"]
I suppose these torrents with magnet links are invalid?
[/quote]

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

rumanzo
Member
Member
Posts: 64
Joined: Fri Dec 29, 2017 6:46 pm

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

Post by rumanzo » Sat Aug 11, 2018 12:27 pm

[quote="ReallyCoolName"]
[quote="rumanzo"]
I suppose these torrents with magnet links are invalid?
[/quote]

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

User avatar
Peter
Administrator
Administrator
Posts: 1650
Joined: Wed Jul 07, 2010 6:14 pm

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

Post by Peter » Mon Aug 13, 2018 7:32 am

Amazing script, just helped a user on Discord with it.
Deluge version was used.

- You have to replace the line 10:

Code: Select all

OLD: "launchpad.net/gnuflag"
NEW: "github.com/juju/gnuflag"
- I had to install the "Go deps" by hand:

Code: Select all

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 all

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
Member
Posts: 64
Joined: Fri Dec 29, 2017 6:46 pm

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

Post by rumanzo » Mon Aug 13, 2018 8:00 am

[quote="Peter"]
Amazing script, just helped a user on Discord with it.
Deluge version was used.

- You have to replace the line 10:

Code: Select all

OLD: "launchpad.net/gnuflag"
NEW: "github.com/juju/gnuflag"
- I had to install the "Go deps" by hand:

Code: Select all

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 all

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.
[/quote]

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 edited by rumanzo on Mon Aug 13, 2018 8:03 am, edited 1 time in total.

rumanzo
Member
Member
Posts: 64
Joined: Fri Dec 29, 2017 6:46 pm

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

Post by rumanzo » Sun Sep 02, 2018 8:34 pm

[quote="ReallyCoolName"]
[quote="rumanzo"]
I suppose these torrents with magnet links are invalid?
[/quote]

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


I'am also compiled version deluge2qbt for Linux
Last edited by rumanzo on Sun Sep 02, 2018 11:38 pm, edited 1 time in total.

Post Reply