l3uddz / traktarr

Script to add new series & movies to Sonarr/Radarr based on Trakt lists.
GNU General Public License v3.0
574 stars 52 forks source link

Radarr dropped support for legacy API #151

Closed Krandor1 closed 2 years ago

Krandor1 commented 3 years ago

Describe the bug Radarr doesn;;'t support legacy API anymore. API hits failing with a 404.

To Reproduce Steps to reproduce the behavior:

  1. Start traktarr with radar at or above 4.0.0.5077

Expected behavior Traktarr to run properly.

Screenshots

Radar 4.0.0.5077 — May 30 2021 nightly New Remove Legacy API

Logs

2021-06-04 15:44:01,433 - DEBUG - media.trakt - _make_request - Request URL: https://api.trakt.tv/shows/anticipated 2021-06-04 15:44:01,434 - DEBUG - media.trakt - _make_request - Request Payload: {} 2021-06-04 15:44:01,434 - DEBUG - media.trakt - _make_request - Request User: krandor1 2021-06-04 15:44:01,434 - DEBUG - media.trakt - _make_request - Response Code: 200 2021-06-04 15:44:01,434 - INFO - Traktarr - validate_trakt - ...Validated Trakt API Key. 2021-06-04 15:44:01,442 - DEBUG - media.pvr - validate_api_key - Request Response: 404 2021-06-04 15:44:01,442 - ERROR - Traktarr - validate_pvr - Aborting due to failure to validate Radarr URL / API Key 2021-06-04 15:44:01,442 - DEBUG - Traktarr - callback_notify - Received callback data: {'event': 'error', 'reason': 'Failure to validate Radarr URL / API Key'} 2021-06-04 15:44:01,449 - DEBUG - media.pvr - get_quality_profile_id - Request URL: http://192.168.16.54:7878/api/profile 2021-06-04 15:44:01,449 - DEBUG - media.pvr - get_quality_profile_id - Request Response: 404 2021-06-04 15:44:01,449 - ERROR - media.pvr - get_quality_profile_id - Failed to retrieve all quality profiles, request response: 404 2021-06-04 15:44:01,450 - WARNING - helpers.misc - backoff_handler - Backing off 0.0 seconds afters 1 tries calling function <function PVR.get_quality_profile_id at 0x7fcd79980f70> with args (<media.radarr.Radarr object at 0x7fcd7997e8e0>, 'Any') and kwargs {} 2021-06-04 15:44:01,499 - DEBUG - media.pvr - get_quality_profile_id - Request URL: http://192.168.16.54:7878/api/profile 2021-06-04 15:44:01,499 - DEBUG - media.pvr - get_quality_profile_id - Request Response: 404 2021-06-04 15:44:01,499 - ERROR - media.pvr - get_quality_profile_id - Failed to retrieve all quality profiles, request response: 404 2021-06-04 15:44:01,500 - WARNING - helpers.misc - backoff_handler - Backing off 0.3 seconds afters 2 tries calling function <function PVR.get_quality_profile_id at 0x7fcd79980f70> with args (<media.radarr.Radarr object at 0x7fcd7997e8e0>, 'Any') and kwargs {} 2021-06-04 15:44:01,793 - DEBUG - media.pvr - get_quality_profile_id - Request URL: http://192.168.16.54:7878/api/profile 2021-06-04 15:44:01,793 - DEBUG - media.pvr - get_quality_profile_id - Request Response: 404 2021-06-04 15:44:01,793 - ERROR - media.pvr - get_quality_profile_id - Failed to retrieve all quality profiles, request response: 404 2021-06-04 15:44:01,794 - WARNING - helpers.misc - backoff_handler - Backing off 1.9 seconds afters 3 tries calling function <function PVR.get_quality_profile_id at 0x7fcd79980f70> with args (<media.radarr.Radarr object at 0x7fcd7997e8e0>, 'Any') and kwargs {} 2021-06-04 15:44:03,691 - DEBUG - media.pvr - get_quality_profile_id - Request URL: http://192.168.16.54:7878/api/profile 2021-06-04 15:44:03,691 - DEBUG - media.pvr - get_quality_profile_id - Request Response: 404 2021-06-04 15:44:03,691 - ERROR - media.pvr - get_quality_profile_id - Failed to retrieve all quality profiles, request response: 404 2021-06-04 15:44:03,691 - ERROR - backoff - _log_giveup - Giving up get_quality_profile_id(...) after 4 tries (None) 2021-06-04 15:44:03,692 - ERROR - Traktarr - get_quality_profile_id - Aborting due to failure to retrieve Quality Profile ID for: Any

You can enable debug mode with core.debug in the config.json file:

  "core": {
    "debug": true
  },

System Information

Additional context Add any other context about the problem here.

saltydk commented 3 years ago

Try develop.

Krandor1 commented 3 years ago

I will give that a try tomorrow and let you know. Thanks for looking at that quickly.

On Jun 5, 2021, at 13:38, salty @.***> wrote:

 Try develop.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

xman0980 commented 3 years ago

I just updated to develop, and it works. Thanks for the fix!!