usage: qbtool [-h] [--host HOST] [--username USERNAME] [--password PASSWORD] [--verbose]
{categorize-failed-private,list-paused-private,scrape-loaded,move-by-availability,remove-loaded-torrents,move-by-rename,find-torrents,rename-folders-regex,full-help}
...
positional arguments:
{categorize-failed-private,list-paused-private,scrape-loaded,move-by-availability,remove-loaded-torrents,move-by-rename,find-torrents,rename-folders-regex,full-help}
categorize-failed-private
Move private torrents with failed tracker announces to a special category. This can help to
find torrents which were removed from a private tracker, or anounce urls with outdated API
keys.
list-paused-private
List all paused private torrents
scrape-loaded Scrape all torrents and output results to file
move-by-availability
Moves torrents around on the harddrive based on number of seeders. NOT FULLY IMPLEMENTED YET!
remove-loaded-torrents
Delete torrents files from directory if they are already loaded in qBittorrent
move-by-rename Move torrents where save_path matches src to dest.
find-torrents Load torrent files from directory, find the associated files on the harddrive and load the
torrents.
rename-folders-regex
Rename folders within torrents. Example: `py qbtool.py rename-folders-regex --src
(.*)\[rarbg\] --dest \1`
full-help Show full help, including subparsers
optional arguments:
-h, --help show this help message and exit
--host HOST qBittorrent web interface host and port
--username USERNAME qBittorrent web interface username
--password PASSWORD qBittorrent web interface password
--verbose Show debug output
usage: qbtool categorize-failed-private [-h] [--do-move] [--category-name CATEGORY_NAME]
optional arguments:
-h, --help show this help message and exit
--do-move Actually move them, otherwise the moves are only printed
--category-name CATEGORY_NAME
Name of category to assign torrents to
usage: qbtool list-paused-private [-h] path
positional arguments:
path Input directory
optional arguments:
-h, --help show this help message and exit
usage: qbtool scrape-loaded [-h] [--out OUT] path
positional arguments:
path Input directory
optional arguments:
-h, --help show this help message and exit
--out OUT Path to write scraped file info to
usage: qbtool move-by-availability [-h] [--scrapes-file SCRAPES_FILE] [--do-move] path
positional arguments:
path Input directory
optional arguments:
-h, --help show this help message and exit
--scrapes-file SCRAPES_FILE
Created by the scrape-loaded command.
--do-move Actually move them, otherwise the moves are only printed
usage: qbtool remove-loaded-torrents [-h] [--do-remove] [--recursive] path [path ...]
positional arguments:
path Input directory
optional arguments:
-h, --help show this help message and exit
--do-remove Remove the file from disk
--recursive Scan for torrent files recursively.
usage: qbtool move-by-rename [-h] --src SRC --dest DEST [--do-move] [--case-sensitive] [--regex] [--match-start]
[--match-end]
optional arguments:
-h, --help show this help message and exit
--src SRC Source path pattern
--dest DEST Destination path pattern
--do-move Actually move them, otherwise the moves are only printed
--case-sensitive
--regex Use regex for src and dest
--match-start Only match if src is found at the start of the path
--match-end Only match if src is found at the end of the path
usage: qbtool find-torrents [-h] --torrents-dirs TORRENTS_DIRS [TORRENTS_DIRS ...] --data-dirs DATA_DIRS
[DATA_DIRS ...] [--do-add] [--ignore-top-level-dir] [--follow-symlinks] [--recursive]
[--modes {paths-and-sizes,sizes} [{paths-and-sizes,sizes} ...]]
optional arguments:
-h, --help show this help message and exit
--torrents-dirs TORRENTS_DIRS [TORRENTS_DIRS ...]
Directory with torrent files
--data-dirs DATA_DIRS [DATA_DIRS ...]
Directory to look for torrent data
--do-add Actually add the torrents to qBittorrent, otherwise just print found ones
--ignore-top-level-dir
Ignore the name of the top level dir. This will help to find torrents where no sub-folder was
created.
--follow-symlinks Follow symlinks (and junctions)
--recursive Scan for torrent files recursively.
--modes {paths-and-sizes,sizes} [{paths-and-sizes,sizes} ...]
Torrent file matching modes. `paths-and-sizes` finds paths first, then matches all file sizes
and then adds the torrents. `sizes` finds files only based on filesize. It tries to add
torrents with renamed files. NOTE: `sizes` mode is still unstable!
Some of the main arguments like username and password can be put into a config file at <user_data_dir>/Dobatymo/qb-tool/config.json
. For Windows this defaults to C:\Users\<user>\AppData\Local\Dobatymo\qb-tool\config.json
py qbtool.py move-by-rename --src "/movie" --dest "/film"
will match/movie/
, but also/movies-old/
and others. So either use--src /movie/
or add--match-end