Automatically change the rootFolder of a requested item depending on whether it is an anime-movie, cartoon, documentary, reality, animated series.
- Install the requirements
pip install -r requirements.txt
- Change the
get_url
andput_url
to your seerr url - Also add in your api-keys into the headers of both under
'X-Api-Key':
- Change the rootfolders to match your setup
- Only uncomment the
request.post
block if you use ntfy - Run with
python main.py
orpython main.py &
(detached) - In Seerr, turn on
webhook notification agent
and enablerequest pending approval
notification type - Add the url for the webhook, for example,
192.168.1.5:5001/webhook
- Add the following template and save
{
"requestID": "{{request_id}}",
"mediaId": "{{media_tmdbid}}",
"mediaType": "{{media_type}}",
"{{extra}}": [],
"image": "{{image}}",
"message": "{{message}}"
}
- Make url, rootfolders, port passable as args or through env
- Add more notification agents (discord, telegram)
- Add in a python binary with all dependencies packaged into it