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

Windows specific questions, problems.
rumanzo
VIP
VIP
Posts: 141
Joined: Fri Dec 29, 2017 6:46 pm

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

Post by rumanzo »

[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

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

Post by 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 ?
rumanzo
VIP
VIP
Posts: 141
Joined: Fri Dec 29, 2017 6:46 pm

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

Post by rumanzo »

[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
VIP
VIP
Posts: 141
Joined: Fri Dec 29, 2017 6:46 pm

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

Post by rumanzo »

[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

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

Post by 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.
rumanzo
VIP
VIP
Posts: 141
Joined: Fri Dec 29, 2017 6:46 pm

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

Post by rumanzo »

[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

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

Post by IronMan »

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

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

Post by 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
ReallyCoolName

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

Post by 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.
rumanzo
VIP
VIP
Posts: 141
Joined: Fri Dec 29, 2017 6:46 pm

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

Post by rumanzo »

[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

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

Post by 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.
rumanzo
VIP
VIP
Posts: 141
Joined: Fri Dec 29, 2017 6:46 pm

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

Post by rumanzo »

[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: 2693
Joined: Wed Jul 07, 2010 6:14 pm

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

Post by 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.
rumanzo
VIP
VIP
Posts: 141
Joined: Fri Dec 29, 2017 6:46 pm

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

Post by rumanzo »

[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
VIP
VIP
Posts: 141
Joined: Fri Dec 29, 2017 6:46 pm

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

Post by rumanzo »

[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