radarr_sonarr_watchmon icon indicating copy to clipboard operation
radarr_sonarr_watchmon copied to clipboard

Radarr returned status code 200

Open karan opened this issue 3 years ago • 4 comments

Radarr can return status code 200 however this has 2 problems:

  1. The movie is still not marked unmonitored.

  2. The error condition raises an error because r.json() is a list of all movies.

    Traceback (most recent call last):
      File "radarr_sonarr_watchmon.py", line 423, in <module>
        app.radarr(recent_days, radarr_address, radarr_apikey)
      File "radarr_sonarr_watchmon.py", line 130, in radarr
        print("   Error: "+str(r.json()["message"]))
    TypeError: list indices must be integers or slices, not str
    

Radarr Version: 3.2.2.5080

karan avatar Jun 16 '21 00:06 karan