elgatito / plugin.video.elementum

Elementum add-on for Kodi. Development of this addon has been stopped!
http://elementum.surge.sh
MIT License
490 stars 160 forks source link

Elementum + Trakt sync #636

Open elgatito opened 4 years ago

elgatito commented 4 years ago

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

Changes, v0.1.62

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 commented 4 years ago

@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: https://github.com/elgatito/plugin.video.elementum/issues/534 With my solution: https://github.com/elgatito/plugin.video.elementum/issues/534#issuecomment-571752668 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 commented 4 years ago

@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 commented 4 years ago

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 commented 4 years ago

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

pekapa commented 4 years ago

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

elgatito commented 4 years ago

@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 commented 4 years ago

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 commented 4 years ago

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

sebastianabate commented 4 years ago

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 commented 3 years ago

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] WARN trakt ▶ Likedlists Bad 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 commented 3 years ago

@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 commented 3 years ago

@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