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.0.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.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qbittorrent_tools-1.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 a270a70016bd4b70d2428d660713cd5465af736f8690218570f07c82e1a3220d
MD5 5fbb57bfa9b0ccd608592c7d73da90d9
BLAKE2b-256 c08243abec8f59063b337eed40a7cdd7967efbac0d3fce1f873e636ef7b5c5c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for qbittorrent_tools-1.1.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for qbittorrent_tools-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1808986a5fb9382d49a261cca9ef50a5bff7b62830da83dfd61c81a7a827f6a1
MD5 168316c720ac8e9f27d36a734877d55b
BLAKE2b-256 911862cb2aab54213f7beb68cbfe1ab13e54c7150237d29fa3c80dee421091c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for qbittorrent_tools-1.1.0-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