A simple script to monitor Qbit and communicate with Radarr and Sonarr
Project description
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.
-
- You need to copy the
config.example.ini
and rename it to~/.config/qBitManager/config.ini
(~ is your home directory, i.eC:\Users\{User}
)
- You need to copy the
-
- I have qBit setup to have to create sub-folder for downloads and for the download folder to use subcategories.
-
- Make sure to have
ffprobe
added to your PATH.
- Make sure to have
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.ini
- 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
Change Logs
- Update 2021-11-30
- This update will require you to delete the existing databases in
~/.config/qBitManager
due to changes to the database format. - Several bug fixes and new functionality.
- This update will require you to delete the existing databases in
- Update 2021-12-11
- Fix an edge case where the script would tell the Arr instance that the torrent couldn't be found too early resulting in its removal.
- Make a release to PyPi
- Add the script to your PATH via
pip install
allowing you to start it by just runningqbitrr
- Update logging and several typo fixes
- Make the script listen for
~/.config/qBitManager/config.ini
and prioritize it if it exists - in a future release it will stop listening forconfig.ini
in the current working dir.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
qBitrr-1.0.4.tar.gz
(29.6 kB
view hashes)
Built Distribution
qBitrr-1.0.4-py3-none-any.whl
(30.2 kB
view hashes)