trakt / script.trakt

Trakt.tv movie and TV show scrobbler for Kodi
GNU General Public License v2.0
318 stars 149 forks source link

Trakt scrobbles tv show episodes but not movies #582

Open alscaldas opened 2 years ago

alscaldas commented 2 years ago

Expected Behavior

I'd like Trakt to scrobble movies the way it does with tv shows episodes.

Current Behavior

I don't have a local library. All my movies and tv shows come from remote shares that I access via EmbyCon or Plex Composite. I also use TheMovieDB Helper (in fact I pointed all menu items of the skin I use - Arctic Zephyr 2: Resurrection - to TMDB entries as for example "Trendin this week", "Watchlist", etc). Using either EmbyCon or Composite Trak scrobbles tv shows episodes just fine, and I can even see in the Trakt webpage how much of the episode I've seen to that moment. It works also if I want to resume later from the point I stopped. But there's no way it works with movies...

I'm attaching a log file as suggested, but this is the (at least I think so) relevant part:

2021-11-27 13:32:02.586 T:6982  WARNING <general>: [script.trakt] trakt.interfaces.base: Request failed: "POST /scrobble/start" - 404: "Method exists, but no record found" (Not Found)

2021-11-27 13:32:03.080 T:6982  WARNING <general>: [script.trakt] trakt.interfaces.base: Request failed: "POST /scrobble/start" - 429: "Rate limit exceeded" (Rate Limit Exceeded)
2021-11-27 13:32:04.483 T:6982  WARNING <general>: [script.trakt] trakt.interfaces.base: Request failed: "POST /scrobble/start" - 404: "Method exists, but no record found" (Not Found)

Possible Solution

I have no idea on how to fix it...

Steps to Reproduce (for bugs)

  1. Try to watch a movie (no matter if it's from a Plex or Emby share, if I try to access the movie directly through EmbyCon or Composite or via one of the correspondent TMDB players).
  2. The movie will start playing, but it won't be scrobbled.
  3. If I do the same with a tv show episode it works fine.

Context

That's an issue I've had for a relatively long time (since LibreELEC 9.2.x) but never really gave it too much attention. After finishing each movie I just accessed Trakt website manually and marked the movie as watched. But it's very tedious...

In fact I'm not sure whether this is an issue with the trakt script or with one of the other addons (EmbyCon, TMDB Helper, Composite, etc), but I can say that I've used Emby and PlexKodiConnect before (which somehow create local databases) and scrobbled worked for both movies and tv shows. The thing is I don't use them because these databases keep growing and have significant impact on performance.

Your Environment

I'm using a RockPro64 (RK3399) Kodi 19.3.0 Git:19.3-Matrix Plataform: Linux ARM 32-bit LibreELEC (official): 10.0.1, kernel: Linux ARM 64-bit version Skin: arctic.zephyr.2.resurrection.mod v0.7.0 TheMovieDB Helper v4.4.27 Trakt v3.5.0 Plex Composite v1.4.1 EmbyCon v1.10.1

kodi.log

alscaldas commented 2 years ago

Just to let you know I tested it using the addon Seren as a media source (keeping the current TMDB Helper menu links) and it woked for both tv shows episodes and movies, which leaves me to believe there's something wrong with the way EmbyCon is passing the movies variables data to Trakt.

alscaldas commented 2 years ago

I asked around in the EmbyCon forums and one of the developers was kind enough to take a look at the issue.

He explains here a possible solution based on the addition of one single line of code. It worked here and now I can sync movies.

I'm closing this ticket hoping that the developer consider to make this change available on the next version of Trakt.

Peter3344 commented 3 months ago

I have the same issue any help ?!

rjousse18 commented 1 month ago

Same issue here ! I tried to manually sync movie / show from a streaming addon via this method : https://github.com/trakt/script.trakt/wiki/Providing-id's-to-facilitate-scrobbling

but it's working only for tv show :/

rjousse18 commented 1 month ago

Hi again, It seems that the function getInfoLabelDetails in the kodiUtilities.py always get 0 for the Season. Even if I set manually my season's item to -1 or False.

razzeee commented 1 month ago

Are you using the default skin?

rjousse18 commented 1 month ago

mb, my precedent post is invalid, I just checked the code of the streaming addon and the season is manually set to 0 so not a problem from Trakt.