developeranaz / qbittorrent-to-rclone-heroku

GNU General Public License v3.0
98 stars 124 forks source link

rclone - crypt support? #10

Open DarkVader-cell opened 2 years ago

DarkVader-cell commented 2 years ago

Hey, I have deployed this and torrents download fine, but I would like the download location to be an encrypted drive (crypt) from my config and I have set it as my first drive there to reflect the same.

But, none of the downloads are being reflecting in my team drive, am I doing something wrong or are crypt remotes not supported yet?

developeranaz commented 2 years ago

oh thats a problem. i'll fix it as soon as possible.

developeranaz commented 2 years ago

I assume rclone crypt is similar to rclone union, for now rename your cloud/remote name in a manner below.

[1] 
type = union
remotes = 2: 3: 4:

[2] 
type = drive
root_folder_id = xxcc
scope = drive
token = xxcc

[3] 
type = pcloud
hostname = api.pcloud.com
token = 

[4]
type = mega
user = xxxxx@xxx.com
pass = xxxxxxxx

Use your main/ desired remote name for upload to [1] (to list it first)

developeranaz commented 2 years ago

I assume rclone crypt is similar to rclone union, for now rename your cloud/remote name in a manner below. [1] type = union remotes = 2: 3: 4: [2] type = drive root_folder_id = xxcc scope = drive token = xxcc [3] type = pcloud hostname = api.pcloud.com token = [4] type = mega user = xxxxx@xxx.com pass = xxxxxxxx Use your main/ desired remote name for upload to [1] (to list it first)

so are you saying that keep my [1] remote one as crypt drive and keep [2] remote 2 as the normal gdirve that might fix the error ??? I tried this configuration keeping encrypted drive 1st still it uploads the the the unencrypted 2nd remote that is drive 1 doesn't work but their is a fix i got it working [driveencrypt] type = crypt remote = drive1: password = ILUFIKVikfvsajufvbskli-dsgdsgsdgds-gdsg-sdgg-dsg-sdg-dsgds password2 = ILUFIKVikfvsajufvbskli-dsgdsgsdgds-gdsg-sdgg-dsg-sdg-dsgds

[drive1] type = drive client_id = client_secret = scope = drive token = {"access_token":"lol"} root_folder_id =

the solution is tools>options scroll allthe way down and you will see this line rclone copy /qBittorrent/downloads/"%N" drive1:qbit/"%N" just edit this to rclone copy /qBittorrent/downloads/"%N" driveencrypt:qbit/"%N" image i did this and it worked

you can do that but you need to change it every 23 hours or next heroku restart

developeranaz commented 2 years ago

Use below similar rclone config to change it permanently

[000000001a]
type = crypt
remote = drive1:
password = ILUFIKVikfvsajufvbskli-dsgdsgsdgds-gdsg-sdgg-dsg-sdg-dsgds
password2 = ILUFIKVikfvsajufvbskli-dsgdsgsdgds-gdsg-sdgg-dsg-sdg-dsgds

[drive1]
type = drive
client_id =
client_secret =
scope = drive
token = {"access_token":"lol"}
root_folder_id =

according to rclone remote listing , remotes starting with 0 will list first and files will be uploaded to it

bolavefasfas commented 2 years ago

Use below similar rclone config to change it permanently

[000000001a]
type = crypt
remote = drive1:
password = ILUFIKVikfvsajufvbskli-dsgdsgsdgds-gdsg-sdgg-dsg-sdg-dsgds
password2 = ILUFIKVikfvsajufvbskli-dsgdsgsdgds-gdsg-sdgg-dsg-sdg-dsgds

[drive1]
type = drive
client_id =
client_secret =
scope = drive
token = {"access_token":"lol"}
root_folder_id =

according to rclone remote listing , remotes starting with 0 will list first and files will be uploaded to it

ohh thats great so any remote starting with a 0 will be considered as default remote 👍 was this pushed in update ??

developeranaz commented 2 years ago

No, the webapp was already designed in that manner, but i didn't provided it in readme.

bolavefasfas commented 2 years ago

No, the webapp was already designed in that manner, but i didn't provided it in readme.

All right