This project is a collection of scripts for managing torrents in a qBittorrent instance.
- orphaned_torrents
- unregistered_torrents
qBittorrent-Tools is not affiliated with the official qBittorrent project.
This project is licensed under the MIT license. See LICENSE.txt for more information.
Create a config.ini file like so:
[credentials]
username = username
password = password
server url = example.com:port
[paths]
qbittorrent base directory = base torrent file path
paths to ignore = comma separated list of paths to ignore
[path maps]
path to map = value to map to
[trackers]
old url prefix = http:example.com
new url prefix = https:example.comPath mapping is used to address the fact that in a docker container, the
path seen by the qBittorrent client probably isn't the real path. For
example, if in the container, the files are stored in /data but are
physically on a RAID array, /mnt/md0 then the following mapping would be
needed: /data = /mnt/md0.
Call the script function for the operation you wish to execute. The
config.ini file needs to be in the same directory as your script.
For example, if checking for unregistered torrents, the following script calls the appropriate function.
from qBittorrentTools import Scripts
def main():
Scripts.unregistered_torrents()
if __name__ == "__main__":
main()