automation script for move category
Posted: Mon Jun 05, 2023 8:40 pm
Hello everyone,
Can any of you help me regarding QBittorrent web?
I made a script to automate my torrents, my goal:
1. upload the completed torrent to uptobox
2. copy this uploader file to another folder
3. Change torrent uploader category
The first two steps work very well, but I'm stuck on the category change :-(
If someone has the solution, it's with pleasure...
Here is the code I am using:
Can any of you help me regarding QBittorrent web?
I made a script to automate my torrents, my goal:
1. upload the completed torrent to uptobox
2. copy this uploader file to another folder
3. Change torrent uploader category
The first two steps work very well, but I'm stuck on the category change :-(
If someone has the solution, it's with pleasure...
Here is the code I am using:
Code: Select all
#!/bin/bash
#Prendre en variables les chemins d'installation de qbittorrent, le fichier torrent, et le dossier de téléchargement
QB_DIR="/home/(username)/bin/"
TORRENT_PATH="$2"
DOWNLOAD_DIR="/home/(username)/downloads/qbittorrent/test"
# Copier le fichier vers Uptobox
rclone copy -P "$DOWNLOAD_DIR" uptobox:test
# Copier le fichier de Uptobox vers Uptobox:test2
rclone copy -P uptobox:test uptobox:test2
# Déplacer le torrent vers la catégorie terminé
"$QB_DIR"/qbittorrent-nox --webui-port=(myport) --auth-no-challenge --command="setCategory ${TORRENT_PATH:1} \"test2\""