Page 3 of 17

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

Posted: Tue Jul 10, 2018 6:29 am
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?

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

Posted: Sat Jul 14, 2018 5:06 pm
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 ?

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

Posted: Sun Jul 15, 2018 8:56 am
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

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

Posted: Mon Jul 16, 2018 11:15 pm
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.

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

Posted: Tue Jul 17, 2018 4:45 am
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.

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

Posted: Tue Jul 17, 2018 5:56 am
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?

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

Posted: Tue Jul 17, 2018 9:13 pm
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.

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

Posted: Thu Aug 09, 2018 7:34 am
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

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

Posted: Thu Aug 09, 2018 9:24 pm
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.

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

Posted: Thu Aug 09, 2018 9:53 pm
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?

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

Posted: Thu Aug 09, 2018 10:16 pm
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.

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

Posted: Sat Aug 11, 2018 12:27 pm
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.

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

Posted: Mon Aug 13, 2018 7:32 am
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.

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

Posted: Mon Aug 13, 2018 8:00 am
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?

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

Posted: Sun Sep 02, 2018 8:34 pm
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