trakt / script.trakt

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

Fatal error: resources.lib.service #390

Open Fred-Vatin opened 7 years ago

Fred-Vatin commented 7 years ago
script version Module version Kodi OS
3.1.12 2.14.1 17.3 Win 10 x64 pro (french) 14393

Steps to reproduce

  1. Trakt settings: disable TV episode scrobble.
  2. play an episode from a TV show

Results

If trakt setting is to rate episode after watch, here is the log with fatal error: AttributeError: 'NoneType' object has no attribute 'to_dict' (line 279 & 337).

At the end of episode, trakt doesn't offer to rate it.

If trakt setting is to NOT rate episode after watch, here is the log with another fatal error: Error Type: <type 'KeyError'> (line 270).

Here is my trakt settings.

No issue cases

Maybe related (or not at all) with the fact my database is filled with the NFO scrapper. See #387

razzeee commented 7 years ago

So we will need your nfo again :) And please check the ids vs trakt

Fred-Vatin commented 7 years ago

@Razzeee

For the NFO, you can check the same I posted in the #387, that is to say here. Issue exists for every show and every episode. There is NO issue with sync, all my show that are on my Kodi DB are on my trakt DB.

When scobble episode is ON, there is no issue, I get the notification it's ok. Same with the rating I send at the end of episode. It seems there is no issue in this context for trakt to find my tvshow and it works flawlessly.

Fatal errors only pop up in the log if scobble episode is OFF and it breaks the rating feature. I think it is the key of the issue but I don't know why.

razzeee commented 7 years ago

Yeah, it's a path that's not very well tested. At least not from me, not sure when I will have time for that.