-
Notifications
You must be signed in to change notification settings - Fork 0
02. Configuration
This guide explains how to configure the Custom Format Sync tool for your Radarr and Sonarr instances.
GitHub Secrets are used to securely store sensitive information like URLs and API keys. You'll need to set up secrets for each Radarr and Sonarr instance you want to sync.
For each instance, you need to set up two secrets:
- URL Secret:
RADARR_XXX_URL
orSONARR_XXX_URL
- API Key Secret:
RADARR_XXX_API_KEY
orSONARR_XXX_API_KEY
Where:
-
XXX
is a three-digit number starting from 001
RADARR_001_URL
RADARR_001_API_KEY
SONARR_001_URL
SONARR_001_API_KEY
RADARR_002_URL
RADARR_002_API_KEY
SONARR_002_URL
SONARR_002_API_KEY
- Go to your GitHub repository
- Click on "Settings" > "Secrets and variables" > "Actions"
- Click "New repository secret"
- Enter the name of the secret (e.g.,
RADARR_001_URL
) - Enter the value (e.g.,
https://radarr.example.com
) - Click "Add secret"
- Repeat for each URL and API key
For detailed information on configuring custom formats, including file structure and key fields, please refer to the 📘 Usage Guide.
The sync workflow is configured in the .github/workflows/sync-custom-formats.yml
file.
By default, the sync process runs:
- On pushes to the
main
branch that affect files in thecustom_formats/
directory - Daily at midnight UTC
- Manually when triggered through the GitHub Actions UI
To change when the sync runs:
- Open
.github/workflows/sync-custom-formats.yml
- Modify the
on
section:
on:
push:
branches:
- main
paths:
- 'custom_formats/**'
schedule:
- cron: '0 0 * * *' # Daily at midnight UTC
workflow_dispatch: # Allows manual triggering
The version.json
file in the root of your repository tracks the last synced version of each custom format. This file is automatically updated by the sync script.
version.json
. It's managed automatically by the sync process.
Logging is configured in the sync_script.py
file. By default, it's set to the INFO
level.
To change the log level:
- Open
sync_script.py
- Find the line:
logging.basicConfig(level=logging.INFO, ...)
- Change
INFO
to your desired level (e.g.,DEBUG
for more detailed logs)
For more information on using the Custom Format Sync tool, please refer to the 📘 Usage page. If you encounter any issues, check the 🔧 Troubleshooting page.