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

Elementum + Trakt sync #636

Open
elgatito opened this issue Nov 10, 2020 · 12 comments
Open

Elementum + Trakt sync #636

elgatito opened this issue Nov 10, 2020 · 12 comments

Comments

@elgatito
Copy link
Owner

elgatito commented Nov 10, 2020

We have issues with synchronization functionality in Elementum, which influence Trakt API in a bad way.
Elementum was adding lot of history entries, and that caused huge loads on Trakt.

Changes, from v0.1.60

  • Custom Trakt Client ID settings are removed, please, use default keys, it will allow Trakt guys to control this app more precisely.
  • Trakt Client IDs are split into Read-only and Full access. Readonly are used by people who do not authorize with Trakt.
  • If you see a dialog from Elementum saying that your account is blocked for API - contact Trakt Support at https://support.trakt.tv to unlock it. This message is shown once per day.

Changes, v0.1.62

  • We have another new key. Old keys are disabled, because synchronization code has bugs, that lead to huge loads on the Trakt side, so we disable the API key to push users to update Elementum.

We need help

If you use latest version of Elementum and you see in Trakt History ( https://trakt.tv/users/me/history ), that you have reported duplicate playbacks, which should not be there - please, report it here in Github with log files ( http://elementum.surge.sh/contribute/report-issue/ ).

Any help with coding is also welcome. Source is open - https://github.com/elgatito/elementum

Trakt Announcements

There are few items to see from Trakt team (@rectifyer @rudf0rd):

@burekas7
Copy link

burekas7 commented Nov 10, 2020

@elgatito

  1. So there is no need anymore to insert my own keys in the "Custom Trakt API Client ID/Secret"?
    As we discussed on this issue here: Solved: Communication problem with Trakt #534
    With my solution: Solved: Communication problem with Trakt #534 (comment)
    I thought that it's better that each user has is own keys.

  2. What does make Trakt to block API? What is the using limitation?
    And the API is blocked until Trakt open it after contact with their support? until then Elementum will show this dialog once a day?

And thanks for your great work, appriciate that.

@elgatito elgatito pinned this issue Nov 11, 2020
@elgatito
Copy link
Owner Author

@burekas7 is account is locked - you need to contact Trakt support to unlock it, and, probably cleanup your history from duplicates, created by Elementum.

@pekapa
Copy link

pekapa commented Nov 12, 2020

Hey there, after this update I keep getting the notification that trakt authentication needs to be updated even though I've already re-authorized elementum on the trakt platform. Am I missing some step? Is this a sign that my account migh have being blocked and I need to contact their support?

@elgatito
Copy link
Owner Author

@pekapa The API key was changed, so you need to authorize again. (Click authorize + go to trakt.tv/activate)

@pekapa
Copy link

pekapa commented Nov 12, 2020

I've done that a couple of times already but the notification keeps coming up

@elgatito
Copy link
Owner Author

@pekapa then you do that in a wrong way, or something else happen, so you can share a log which shows how you re-authorize.

@henshin
Copy link

henshin commented Nov 17, 2020

I've done that a couple of times already but the notification keeps coming up

I was also having that issue. The problem seems to be that Elementum wasn't changing the tokens even after reauthorizing Trakt. The workaround for me was to clear the tokens from settings.xml and then reauthorize Trakt. The file was updated successfully after that.
You need to locate the values of trakt_refresh_token and trakt_token and empty the contents for those fields in the XML. On Android, you can do this either by pulling the file, edit it locally and then push it using adb or edit it directly with sed with something like

$ sed -i 's/<trakt_refresh_token_value>//' settings.xml
$ sed -i 's/<trakt_token_value>//' settings.xml

After that do the authorization again and verify that the new tokens were updated on the file.

@JacopoV
Copy link

JacopoV commented Nov 18, 2020

After a week testing i have no issues in Trakt history. :) so it seems working all good :)

@sebastianabate
Copy link

For me everything is working except access to my own lists; when I select "TV Shows - My lists" or "Movies - My lists" two errors pop ups:

-Trakt username not set, check your settings
-Bad status getting liked lists for XXXXXXXXX: 401

Trakt is authorized, I can see my username in "Settings - Trackt - Username", and others Trackt sections works OK ("My collection", "My progress", "My history"), the only problem is with the lists.

I re-authorized trakt several times, even started over deleting /.kodi/userdata/addon_data/plugin.video.elementum, but the error persist (I'm running Coreelec 9.2.5)

In the logs the only entry recorded for the error is:

NOTICE: [plugin.video.elementum] .[33mWARN trakt Likedlists .[0mBad status getting liked lists for XXXXXXXXX: 401

Note: XXXXXXXXX = Trakt username

@georgew21
Copy link

i have also problem getting trakt user lists. I have tried clear cache and update trakt, bu no fix.

this is the log:

2021-01-03 11:37:45.630 T:5719 NOTICE: [plugin.video.elementum] �[33mWARN trakt ▶ Likedlists �[0mBad status getting liked lists for [USERNAME]: 401
2021-01-03 11:37:45.637 T:5719 NOTICE: [plugin.video.elementum] [GIN] 2021/01/03 - 09:37:45 | 200 | 194.514561ms | 127.0.0.1 | GET "/movies/trakt/lists/?doresume=false"

@elgatito
Copy link
Owner Author

elgatito commented Jan 3, 2021

@georgew21

  1. This is not a log, it's a line from log, without any information.
  2. What you write, is not connected to Trakt sync.

@georgew21
Copy link

georgew21 commented Jan 3, 2021

@elgatito sorry. i set in settings of elementum logging to debug and this is the log (i have replaced my mail address). i am on android 9, mi box s.

as @sebastianabate said above "In the logs the only entry recorded for the error is:

NOTICE: [plugin.video.elementum] .[33mWARN trakt Likedlists .[0mBad status getting liked lists for XXXXXXXXX: 401"

i hope this is ok:

https://pastebin.pl/view/507865cc

Repository owner deleted a comment from I-Cat Apr 18, 2021
@antonsoroko antonsoroko mentioned this issue Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants