This script helps you upload files downloaded by qBitorrent to Google Drive using Service accounts.
- Install python
- Download or install rclone (use latest version)
- Download source code folder.
- Rename folder to qbittorrent_rclone and copy it to your qBitorrent download folder.
- folder path will be like this according to the example.
D:\Downloads\Torrent\qbittorrent_rclone
- Now go to Options => download This check:
- Run external program on torrent completion
- write this in the command field:
python "%D/qbittorrent_rclone/main.py" -t "%N" -c "%F" -r "%R" -s "%D"
- Put your service accounts json files in accounts folder.
- Put Shared Drive (Team Drive) id in settings.ini.
- Put Google Drive folder id (The folder id you want to upload your files) in settings.ini file.
- Select what command used by rclone from
move
orcopy
orsync
(Default ismove
). - Write rclone path (System PATH used by default)
You are ready to go.
This script can scan torrent name and then create a specific directory to save in Google drive, but it is still very limited so it is disabled by default.