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

Sonarr with 0 shows makes traktarr error #121

Open
erik-inkapool opened this issue Feb 14, 2020 · 2 comments · May be fixed by #164
Open

Sonarr with 0 shows makes traktarr error #121

erik-inkapool opened this issue Feb 14, 2020 · 2 comments · May be fixed by #164
Labels

Comments

@erik-inkapool
Copy link

erik-inkapool commented Feb 14, 2020

Describe the bug
Language profile lookup fails even though it shouldn't be done on my version.

To Reproduce
Steps to reproduce the behavior:

  1. I run python traktarr.py shows -t watchlist
  2. It errors with:
    2020-02-14 19:48:11,979 - ERROR      - Traktarr    - get_objects             - Aborting due to failure to retrieve shows list from Sonarr
    

Expected behavior
Traktarr shouldn't error here

Logs

2020-02-14 19:48:11,877 - DEBUG      - asyncio     - __init__                - Using proactor: IocpProactor
2020-02-14 19:48:11,882 - INFO       - Traktarr    - validate_trakt          - Validating Trakt API Key...
2020-02-14 19:48:11,952 - DEBUG      - media.trakt - _make_request           - Request URL: https://api.trakt.tv/shows/anticipated
2020-02-14 19:48:11,952 - DEBUG      - media.trakt - _make_request           - Request Payload: {}
2020-02-14 19:48:11,953 - DEBUG      - media.trakt - _make_request           - Request User: Crankysaurus
2020-02-14 19:48:11,953 - DEBUG      - media.trakt - _make_request           - Response Code: 200
2020-02-14 19:48:11,954 - INFO       - Traktarr    - validate_trakt          - ...Validated Trakt API Key.
2020-02-14 19:48:11,957 - DEBUG      - media.pvr   - validate_api_key        - Request Response: 200
2020-02-14 19:48:11,957 - INFO       - Traktarr    - validate_pvr            - Validated Sonarr URL & API Key.
2020-02-14 19:48:11,960 - DEBUG      - media.pvr   - get_quality_profile_id  - Request URL: http://localhost:8989/api/profile
2020-02-14 19:48:11,960 - DEBUG      - media.pvr   - get_quality_profile_id  - Request Response: 200
2020-02-14 19:48:11,961 - DEBUG      - media.pvr   - get_quality_profile_id  - Profile 'Any' with ID '1' did not match Quality Profile 'HD - 720p/1080p'
2020-02-14 19:48:11,961 - DEBUG      - media.pvr   - get_quality_profile_id  - Found Quality Profile ID for 'HD - 720p/1080p': 6
2020-02-14 19:48:11,961 - INFO       - Traktarr    - get_quality_profile_id  - Retrieved Quality Profile ID for 'HD - 720p/1080p': 6
2020-02-14 19:48:11,965 - DEBUG      - media.pvr   - get_language_profile_id - Skipping Language Profile lookup because Sonarr version is '2.0.0.5338'.
2020-02-14 19:48:11,965 - ERROR      - Traktarr    - get_language_profile_id - No Language Profile ID for: English
2020-02-14 19:48:11,978 - DEBUG      - media.pvr   - _get_objects            - Request URL: http://localhost:8989/api/series
2020-02-14 19:48:11,979 - DEBUG      - media.pvr   - _get_objects            - Request Response: 200
2020-02-14 19:48:11,979 - DEBUG      - media.pvr   - _get_objects            - Found 0 objects
2020-02-14 19:48:11,979 - ERROR      - Traktarr    - get_objects             - Aborting due to failure to retrieve shows list from Sonarr

These two lines look especially suspicious. I did not expect 200 OK with 0 shows to error:

2020-02-14 19:48:11,979 - DEBUG      - media.pvr   - _get_objects            - Request Response: 200
2020-02-14 19:48:11,979 - DEBUG      - media.pvr   - _get_objects            - Found 0 objects
2020-02-14 19:48:11,979 - ERROR      - Traktarr    - get_objects             - Aborting due to failure to retrieve shows list from Sonarr

System Information

  • Traktarr Version: Master (latest)
  • Operating System: Windows 10
@erik-inkapool
Copy link
Author

Seems i missed this part: Aborting due to failure to retrieve shows list from Sonarr which is the actual problem. Closing as there's probably something else wrong

@erik-inkapool
Copy link
Author

erik-inkapool commented Feb 14, 2020

Adding a show resolved my problem, but a sonarr instance with 0 shows added should still not error, right? I want traktarr to add my shows. Edited OP and Reopened

@erik-inkapool erik-inkapool reopened this Feb 14, 2020
@erik-inkapool erik-inkapool changed the title Language profile lookup fails Sonarr with 0 shows makes traktarr error Feb 14, 2020
@sinofool sinofool linked a pull request Feb 21, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant