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

Dot in {authenticate_user} on trakt site change to hyphen in URL #133

Closed lazy-gipsy-bear closed 4 years ago

lazy-gipsy-bear commented 4 years ago

Hi

Describe the bug Dot in {authenticate_user} on trakt site change to hyphen in URL, but traktarr for watchlist insert loginname in URL.

To Reproduce Steps to reproduce the behavior:

  1. Register on the trakt website with a dot in the login name
  2. Click on 'Ptofile' link
  3. See URL (URL contains a hyphen in the part of the username)

Logs 2020-07-12 20:41:45,772 - WARNING - helpers.misc - backoff_handler - Backing off 2.8 seconds afters 4 tries calling function <function Trakt._make_items_request at 0xb5bf0a48> with args (<media.trakt.Trakt object at 0xb5bedad8>,) and kwargs {'url': 'https://api.trakt.tv/users/{authenticate_user}/watchlist/shows', 'object_name': 'shows', 'type_name': 'watchlist from {authenticate_user}', 'authenticate_user': 'my.login', 'limit': 1000, 'years': None, 'countries': None, 'languages': None, 'genres': None, 'runtimes': None}

System Information

lazy-gipsy-bear commented 4 years ago

Hi! After a deep reading of the trakt API documentation, I realized that I should have used user_id: slug instead of user_id After i corrected config all work fine Sorry for disturbing