JohnDoee / autotorrent

Matches torrents with files and gets them seeded
MIT License
269 stars 34 forks source link

Qbittorent #23

Closed ghost closed 5 years ago

ghost commented 5 years ago

Native support for qbittorent would be nice

Right now I just made a secondary fake rtorrent client so the program will run, and create the systemlinks.

I'm planning on the adding the torrents manually through qbittorent, and maybe skipping hash check

JohnDoee commented 5 years ago

Which version of qbittorrent are you using ?

ghost commented 5 years ago

4.1.4 the newest released version, on linux

I actually ran into a few problems with my initial plan. Namely how the .torrents files where named when extracted from an old server's rtorrent.

JohnDoee commented 5 years ago

That reminds me of something I wanted to add. Currently when it makes links, autotorrent uses the torrent file name, it might be smart to be possible to use name taken from the .torrent file instead. Having 200 folders named after infohashes is really useless.

Anyways, qBittorrent API looks simple enough, I'll see what I can get going.

ghost commented 5 years ago

Yeah I think have folders appear with the same name as they do in the torrent client, would be a better way of doing it. Although for general compatibility some files would have to be move out of the folders, if moving to a non supported client.

Secondly thanks for accepting my request. I'm excited to be able to use qbittorrent.

Also I was going to add to the wiki, but I don't know how to do a pull request.

Q: Can I use the same Database file for several configuration files?

Yes, if they have the same disks. Don't worry about adding the store_path to the disks, AutoTorrent will figure it out.

I don't think it works if you change the type of database

JohnDoee commented 5 years ago

So, the current develop branch has qbittorrent support if you want to test it out. I need to do a bit more testing to roll it out as a release but initial tests seem to work fine.

I don't think it works if you change the type of database

You're right and the thought never actually struck me that someone would mix it around.

There is a lot of confusing stuff in autotorrent because features were attached along the way. The config file does not really match how users use autotorrent.

ghost commented 5 years ago

It works when I use my domain. If I use IP it does not Otherwise it throws an SSL error.

But I don't think the setup matters if you don't have SSL.

I have auth basic as well, but I image it will work as long as your signed in.

JohnDoee commented 5 years ago

Http auth works by just adding the user and pass to the url, e.g. http://username:password@qbittorrent.example.com

The SSL stuff is working as intended, not sure I want to disable security features :smile:

ghost commented 5 years ago

I see I added 1000 torrents without issue.

So it seems to be working on initial testing.

JohnDoee commented 5 years ago

Thanks for testing

ordinarygulp commented 5 years ago

Working great here as well. Noticed what I think is a slight UI bug?

[OK]        '02E72CABAD0C6BEEB03DDB767B9CD9C54FDC02E2' Torrent added successfully
Ok.

It seems there are 2 OK's

JohnDoee commented 5 years ago

You're right, that's qbittorrent output. Removed my debug code.

ordinarygulp commented 5 years ago

Perfect! Also for the tally, I've added 347 torrents to qBittorrent without issue thus far. Excellent work!

ghost commented 5 years ago

There is a lot of confusing stuff in autotorrent because features were attached along the way. The config file does not really match how users use autotorrent.

autotorrent-env/bin/autotorrent -h

There is a lot of stuff I didn't realize where apart of the program. Something about there being a manpage might be useful.

ordinarygulp commented 5 years ago

@forsomefun2 I plan on adding these to the readme. However, this does not pertain to this issue (qbittorrent).

@JohnDoee I believe this issue can be closed now.