Skip to content

JacquesLG/Qbitrr

 
 

Repository files navigation

PyPI PyPI - License

PyPI - Python Version Platforms

GitHub branch checks state pre-commit.ci status CodeQL status

Code Style: Black Imports: isort

A simple script to monitor Qbit and communicate with Radarr and Sonarr

Join the Official Discord Server for help.

Features

  • Monitor qBit for Stalled/bad entries and delete them then blacklist them on Arrs (Option to also trigger a re-search action).
  • Monitor qBit for completed entries and tell the appropriate Arr instance to import it ( 'DownloadedMoviesScan' or 'DownloadedEpisodesScan' commands).
  • Skip files in qBit entries by extension, folder or regex.
  • Monitor completed folder and cleans it up.
  • Uses ffprobe to ensure downloaded entries are valid media.
  • Trigger periodic Rss Syncs on the appropriate Arr instances.
  • Trigger Queue update on appropriate Arr instances.
  • Search requests from Overseerr or Ombi.

This section requires the Arr databases to be locally available.

  • Monitor Arr's databases to trigger missing episode searches.
  • Customizable year range to search for (at a later point will add more option here, for example search whole series/season instead of individual episodes, search by name, category etc).

Important mentions

Some things to know before using it.

    1. You need to run the qbitrr --gen-config move the generated file to ~/.config/qBitManager/config.toml (~ is your home directory, i.e C:\Users\{User})
    1. I have Sonarr and Radarr both setup to add tags to all downloads.
    1. I have qBit setup to have to create sub-folder for downloads and for the download folder to use subcategories.

    image

    1. Make sure to have ffprobe added to your PATH.

Install the requirements run

  • python -m pip install qBitrr (I would recommend in a dedicated venv but that's out of scope.

Run the script

  • Make sure to update the settings in ~/.config/qBitManager/config.toml
  • Activate your venv
  • Run qbitrr

How to update the script

  • Activate your venv
  • Run python -m pip install -U qBitrr

Contributions

  • I'm happy with any PRs and suggested changes to the logic I just put it together dirty for my own use case.

Example behaviour

image

About

A simple Python script to talk to Qbit and Arr's

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%