Skip to main content

A collection of scripts for managing torrents in qBittorrent

Project description

qBittorrent-Tools

This project is a collection of scripts for managing torrents in a qBittorrent instance.

Available Scripts

  • orphaned_torrents
  • unregistered_torrents

Note

qBittorrent-Tools is not affiliated with the official qBittorrent project.

License

This project is licensed under the MIT license. See LICENSE.txt for more information.

Configuration

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.com

Path 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.

Example Usage

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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qbittorrent_tools-1.1.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qbittorrent_tools-1.1.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file qbittorrent_tools-1.1.1.tar.gz.

File metadata

  • Download URL: qbittorrent_tools-1.1.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for qbittorrent_tools-1.1.1.tar.gz
Algorithm Hash digest
SHA256 81dca759e400d56e6719f0570994689d3e0728a0393051ba642f085ff8af39d1
MD5 8cc32f76657374615f20bc2eca97e942
BLAKE2b-256 40bca45d90b0b0669f847c6c1b3b97bac3dfdbca3959a9296b5312c3b4c85563

See more details on using hashes here.

Provenance

The following attestation bundles were made for qbittorrent_tools-1.1.1.tar.gz:

Publisher: release.yml on cmorrison31/qBittorrent-Tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qbittorrent_tools-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for qbittorrent_tools-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 de3ce21eac44dc51c5e8a5f6f560db999eb5717f608b2cdc1f6358c76021c9d8
MD5 5c9fd4994aef3ead1f4ac760eeefcfc9
BLAKE2b-256 f4153f364ec4053e605246411601fc81be2bccf078328471feec32851f5525b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for qbittorrent_tools-1.1.1-py3-none-any.whl:

Publisher: release.yml on cmorrison31/qBittorrent-Tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page