Simple Python script to create and update indexers from Jackett in Radarr, Sonarr and Lidarr
- Install virtual environnement
make pipenv-install
- Run script
make run
Run script once to create initial config.ini file
Complete config.ini with your own (remove unneeded apps if needed)
[default]
jackett_apikey = foo
jackett_url = https://localhost/jackett
indexer_prefix = AUTO:
[sonarr]
apikey = foo
url = https://localhost/sonarr/api/
categoryprefixes = ['TV']
animecategoryprefixes = ['Anime', 'TV']
[radarr]
apikey = foo
url = https://localhost/radarr/api/
categoryprefixes = ['Movies']
animecategoryprefixes = ['Anime', 'Movies']
[lidarr]
apikey = foo
url = https://localhost/lidarr/api/v1/
categoryprefixes = ['Audio']
Overriding category for an indexer: edit add_indexer.py and add your own overrides if needed
TODO: move this expert config to config.ini
categories_override = {
"cpasbienclone" : {
"categories" : "7000",
"anime_categories" : "7000"
},
"my_favorite_tracker" : {
"categories" : "2000",
"anime_categories" : "5000"
}
}
- Move override to config file
- Add indexer blacklist in config to avoid adding indexer without music to lidarr for example
Started from code snippet provided by ninnghazad in Jackett Issue
Thanks to ninnghazad for saving me a copple of hours ;)