Fallenbagel / seerr-route

Automatically change the rootFolder of a requested item depending on whether it is an anime-movie, cartoon, documentary, reality, animated series.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feat req: Select sonarr / radarr instance

Magikarplvl4 opened this issue · comments

First of all, thank you for this amazing script!

It will be nice if the script can select a sonarr / radarr instance based on the config and approve the request.
Is is something you can consider? :)

Do you mean like only route a specific sonarr or radarr requests only?

Hi @Fallenbagel,

sorry for the delayed reply..
I have multiple instances for Sonarr to separate Anime and normal tv-shows (Each instance has different configurations)
All the tv-shows requests will be stuck at a pending request state so i can select the correct sonarr instance and approve the request.

It will be really cool if the script can do this, (if anime, then select other instance and approve the request).

Yes that can be done c:
Are the sonarr configured onto seerr? Like do you use the 4k default as anime or sth?

I played around a little bit and I managed to get it working :)

i added an extra step in the script:

    post_url = overseerr_baseurl + f'/api/v1/request/{request_id}/approve'
      headers = {
        'accept': 'application/json',
        'X-Api-Key': overseerr_api_key,
        'Content-Type': 'application/json'
        }
      requests.post(post_url, headers=headers)

and a the "serverId" in the, put_data variable. that did the trick :)

I played around a little bit and I managed to get it working :)

i added an extra step in the script:

    post_url = overseerr_baseurl + f'/api/v1/request/{request_id}/approve'
      headers = {
        'accept': 'application/json',
        'X-Api-Key': overseerr_api_key,
        'Content-Type': 'application/json'
        }
      requests.post(post_url, headers=headers)

and a the "serverId" in the, put_data variable. that did the trick :)

Would love a PR! c: