A lightweight script to check your Radarr and Sonarr media libraries against Aither's uploaded movie torrents.
- Python 3.x installed on your system.
- Radarr and (or) Sonarr installed and configured.
-
Clone or download this repository.
-
Navigate to the project directory.
-
Install the required Python packages using
pip
:pip install requests
-
Create a file named
apiKey.py
in the project directory with the following contents - refer to apiKeySample.py:aither_key = "" radarr_key = "" sonarr_key = "" radarr_url = "" sonarr_url = ""
-
The first time you run the script, you will be prompted to enter your API keys and URLs for Aither, Radarr, and Sonarr. The script will save these values to
apiKey.py
for future use.
To run the script, use the following commands:
-
To check the Radarr library:
python main.py --radarr
-
To check the Sonarr library:
python main.py --sonarr
-
To check both libraries (default if no arguments are provided):
python main.py
- Ensure the Radarr URL is the base URL (e.g.,
http://media.server:7878
) and the script will append/api/v3/movie
. - Ensure the Sonarr URL is the base URL (e.g.,
http://media.server:8989
) and the script will append/api/v3/series
. - The script respects Aither's rate limits with a delay of 2 seconds between requests.
The script generates two files to record movies and shows not found in Aither:
not_found_radarr.txt
: Records movies from Radarr not found in Aither.not_found_sonarr.txt
: Records shows from Sonarr not found in Aither.
The script logs detailed messages to script.log
and provides concise output on the console.