automation script for move category

Windows specific questions, problems.
Post Reply
SnowTechnical

automation script for move category

Post by SnowTechnical »

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:

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\""
User avatar
Peter
Administrator
Administrator
Posts: 2693
Joined: Wed Jul 07, 2010 6:14 pm

Re: automation script for move category

Post by Peter »

Post Reply