Package: qBitrr2
qBitrrA simple script to monitorqBitand communicate withRadarrandSonarrNoticeI am starting development on qBitrr+ which will be C# based for better overall performance and will also include a WebUI for better refined control on setting and what to search/upgrade etc. Hoping this will be the be all and end all application to manage your Radarr/Sonarr, Overseerr/Ombi and qBittorrent instances in one UI. This is still in it's very early stages and will likely be a couple months before a concrete beta is rolled out (from start of February 2024). Once I have something solid I will remove this notice and  add a link to the new qBitrr+, in the meantime I will be sharing periodic updates on myPatreonFeaturesMonitor 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:qbitrr DownloadedMoviesScanfor Radarrqbitrr DownloadedEpisodesScanfor SonarrSkip files in qBit entries by extension, folder or regex.Monitor completed folder and clean it up.Usage offfprobeto ensure downloaded entries are valid media.Trigger periodic Rss Syncs on the appropriate Arr instances.Trigger Queue update on appropriate Arr instances.Search requests fromOverseerrorOmbi.Auto add/remove trackersSet per tracker valuesSonarr v4 supportRadarr v4 and v5 supportMonitor Arr's to trigger missing episode searches.Searches Radarr missing movies based on Minimum AvailabilityCustomizable searching by series or singular episodesOptionally searches year by year is ascending or descending order (config option available)Search for CF Score unmet and cancel torrents base on CF Score or Quality unmet searchSet minimum free space in download directory and pause torrent downloads accordinglyTested withSome things to know before using it.qBittorrent >= 4.5.xSonarrandRadarrboth setup to add tags to all downloads.qBit set to create sub-folders for tag.UsageNativepython -m pip install qBitrr2(I would recommend in a dedicatedvenvbut that's out of scope.Alternatively:Download thelatest releaseRun the scriptActivate your venvRunqBitrr2to generate a config fileEdit the config file (located at~/config/config.toml(~ is your current directory)RunqBitrr2if installed through pip again to start the scriptAlternatively:Unzip the downloaded release and run itRunqBitrrto generate a config fileEdit the config file (located at~/config/config.toml(~ is your current directory)RunqBitrrif installed through pip again to start the scriptHow to update the scriptActivate your venvRunpython -m pip install -U qBitrr2Alternatively:Download on thelatest releaseUnzip the downloaded release and run itRunqBitrrto generate a config fileEdit the config file (located at~/config/config.toml(~ is your current directory)RunqBitrrif installed through pip again to start the scriptThere is no auto-update feature, you will need to manually download the latest release and replace the old one.DockerDocker ImageThe docker image can be found onDockerHuborGithubDocker Rundockerrun-d\--name=qbitrr\-eTZ=Europe/London\-v/etc/localtime:/etc/localtime:ro\-v/path/to/appdata/qbitrr:/config\-v/path/to/completed/downloads/folder:/completed_downloads:rw\--restartunless-stopped\feramance/qbitrr:latestDocker Composeversion:"3"services:qbitrr:image:feramance/qbitrr:latestuser:1000:1000# Required to ensure the container is run as the user who has perms to see the 2 mount points and the ability to write to the CompletedDownloadFolder mounttty:true# Ensure the output of docker-compose logs qBitrr are properly colored.restart:unless-stopped# networks: This container MUST share a network with your Sonarr/Radarr instancesenvironment:-TZ=Europe/Londonvolumes:-/etc/localtime:/etc/localtime:ro-/path/to/appdata/qbitrr:/config# Config folder for qBitrr-/path/to/completed/downloads/folder:/completed_downloads:rw# The script will ALWAYS require write permission in this folder if mounted, this folder is used to monitor completed downloads and if not present will cause the script to ignore downloaded file monitoring.# Now just to make sure it is clean, when using this script in a docker you will need to ensure you config.toml values reflect the mounted folders.# The same would apply to Settings.CompletedDownloadFolder# e.g CompletedDownloadFolder = /completed_downloads/folder/in/containerlogging:# this script will generate a LOT of logs - so it is up to you to decide how much of it you want to storedriver:"json-file"options:max-size:"50m"max-file:3depends_on:# Not needed but this ensures qBitrr only starts if the dependencies are up and running-qbittorrent-radarr-1080p-radarr-4k-sonarr-1080p-sonarr-anime-overseerr-ombiImportant mentions for dockerThe script will always expect a completed config.toml fileWhen you first start the container a "config.rename_me.toml" will be added to/path/to/appdata/qbitrrMake sure to rename it to 'config.toml' then edit it to your desired valuesFeature SuggestionsPlease do not hesitate to open an issue for feature requests or any suggestions you may have. I plan on periodically adding any features I might feel I want to add but welcome to other suggestions I might not have thought of yet.Reporting an IssueWhen reporting an issue, please ensure that log files are enabled while running qBitrr and attach them to the issue. Thank you.