Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traktarr doesn;t appear to work with Sonarr v4 #174

Open
arbitrarypunter opened this issue Dec 21, 2022 · 2 comments
Open

Traktarr doesn;t appear to work with Sonarr v4 #174

arbitrarypunter opened this issue Dec 21, 2022 · 2 comments
Labels

Comments

@arbitrarypunter
Copy link

Describe the bug
Since i upgraded to Sonarr v4, traktarr hasn;t been able to add any shows into sonarr.

To Reproduce
(venv) traktarr@catwoman:~$ ./traktarr.py shows -t anticipated


__ /________ | | / |___ ______________
| | _ __ __ \ | |/ /\ _ \ __ _ __
| | | | // __ | < | | / __ | | /| | /
|| |__| ( /|_ \ || (____ /| ||
/ / /

#########################################################################

Author: l3uddz

URL: https://github.com/l3uddz/traktarr

--

Part of the Cloudbox project: https://cloudbox.works

#########################################################################

GNU General Public License v3.0

#########################################################################

2022-12-21 16:00:17,718 - INFO - Traktarr - validate_trakt - Validating Trakt API Key...
2022-12-21 16:00:17,823 - INFO - Traktarr - validate_trakt - ...Validated Trakt API Key.
2022-12-21 16:00:17,826 - INFO - Traktarr - validate_pvr - Validated Sonarr URL & API Key.
2022-12-21 16:00:17,830 - INFO - Traktarr - get_quality_profile_id - Retrieved Quality Profile ID for 'TV-Ombi': 7
2022-12-21 16:00:17,836 - ERROR - Traktarr - get_language_profile_id - No Language Profile ID for: English
2022-12-21 16:00:17,838 - ERROR - media.sonarr - get_tags - Failed to retrieve all tags, request response: 404
2022-12-21 16:00:17,838 - WARNING - helpers.misc - backoff_handler - Backing off 0.8 seconds afters 1 tries calling function <function Sonarr.get_tags at 0x7f0b443d7040> with args (<media.sonarr.Sonarr object at 0x7f0b443fae80>,) and kwargs {}
2022-12-21 16:00:18,596 - ERROR - media.sonarr - get_tags - Failed to retrieve all tags, request response: 404
2022-12-21 16:00:18,596 - WARNING - helpers.misc - backoff_handler - Backing off 1.8 seconds afters 2 tries calling function <function Sonarr.get_tags at 0x7f0b443d7040> with args (<media.sonarr.Sonarr object at 0x7f0b443fae80>,) and kwargs {}
2022-12-21 16:00:20,392 - ERROR - media.sonarr - get_tags - Failed to retrieve all tags, request response: 404
2022-12-21 16:00:20,393 - WARNING - helpers.misc - backoff_handler - Backing off 0.6 seconds afters 3 tries calling function <function Sonarr.get_tags at 0x7f0b443d7040> with args (<media.sonarr.Sonarr object at 0x7f0b443fae80>,) and kwargs {}
2022-12-21 16:00:21,009 - ERROR - media.sonarr - get_tags - Failed to retrieve all tags, request response: 404
2022-12-21 16:00:21,009 - ERROR - backoff - _log_giveup - Giving up get_tags(...) after 4 tries (None)
2022-12-21 16:00:21,009 - ERROR - Traktarr - get_profile_tags - Aborting due to failure to retrieve Tag IDs

System Information

  • Traktarr Version: 1.2.5
  • Operating System: Ubuntu Server 22.04 LTS

Additional context

I see its been a while since traktarr has had any updates, has it been abandoned?

@Blacktrex007
Copy link

Hello,
Thats because you need to change the API call.

Here is the API call you need to change:

config file : /opt/traktarr/media/pvr.py
line 75
change api/profile to api/v3/qualityprofile

config file : /opt/traktarr/media/radarr.py
line 12 and 41
change Api/movie to Api/v3/movie

config file : /opt/traktarr/media/radarr.py
Line 15
change /api/exclusions to /api/v3/exclusions

Then if you have the service installed, you will have to reload the deamon

if the lines are not the same you can still use the command below to find the file and line with the specific API call:
grep -rnw "PathToTraktarr" -e "api/profile"

@PuppyLover101
Copy link

PuppyLover101 commented Mar 14, 2023

You have to change the sonarr.py /api/tag and /api/series to /api/v3/xxx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants