[RELEASE] trakt.tv tv/movie scrobbler
Hi,
Just updated to latest dev branch and I'm getting script error during scrobbling. Below is my kodi.log. It happened when playing local file from local database on KODI 15 (latest testbuild from Milhouse on RPi):

Code:
17:47:11 172.727493 T:3040464896  NOTICE: DVDPlayer: Opening: /storage/Win7/Seriale/The Americans (2013)/The.Americans.2013.S01E01.720p.BluRay.x264-Counterfeit.mkv
17:47:11 172.727814 T:3040464896 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
17:47:11 172.728699 T:2692404288  NOTICE: Thread DVDPlayer start, auto delete: false
17:47:11 172.730286 T:2702029888  NOTICE: Thread CMMALRenderer start, auto delete: false
17:47:11 172.731491 T:2692404288  NOTICE: Creating InputStream
17:47:11 172.798279 T:2692404288  NOTICE: Creating Demuxer
17:47:12 173.825577 T:2692404288  NOTICE: Opening stream: 0 source: 256
17:47:12 173.874313 T:2692404288  NOTICE: Creating video thread
17:47:12 173.874847 T:2692404288  NOTICE: Opening stream: 1 source: 256
17:47:12 173.875977 T:2692404288  NOTICE: Creating audio thread
17:47:12 173.878632 T:2675627072  NOTICE: Thread OMXPlayerAudio start, auto delete: false
17:47:12 173.879105 T:2692404288  NOTICE: Opening stream: 0 source: 1024
17:47:12 173.881104 T:2684015680  NOTICE: Thread OMXPlayerVideo start, auto delete: false
17:47:12 174.134720 T:2692404288  NOTICE: OMXClock using audio as reference
17:47:13 174.198578 T:2684015680  NOTICE: not a 3D movie
17:47:13 174.198959 T:2684015680  NOTICE: Display resolution ADJUST : 1920x1080 (1920x1080) @ 23.98 - Full Screen (28) (weight: 0.000)
17:47:14 175.587753 T:2916394048  NOTICE: [trakt] [traktPlayer] onPlayBackStarted() - {u'item': {u'type': u'episode', u'id': 339, u'label': u'Pilot'}}
17:47:14 175.594559 T:2916394048  NOTICE: [trakt] checkScrobblingExclusion(): Checking exclusion settings for '/storage/Win7/Seriale/The Americans (2013)/The.Americans.2013.S01E01.720p.BluRay.x264-Counterfeit.mkv'.
17:47:14 175.607727 T:2916394048  NOTICE: [trakt] [traktPlayer] onPlayBackStarted() - Doing multi-part episode check.
17:47:15 176.147598 T:2916394048  NOTICE: [trakt] [traktPlayer] onPlayBackStarted() - {u'episodedetails': {u'season': 1, u'tvshowid': 29, u'episode': 1, u'episodeid': 339, u'label': u'Pilot'}}
17:47:15 176.828995 T:2916394048  NOTICE: [trakt] [traktPlayer] onPlayBackStarted() - {u'episodes': [{u'episode': 1, u'episodeid': 339, u'file': u'/storage/Win7/Seriale/The Americans (2013)/The.Americans.2013.S01E01.720p.BluRay.x264-Counterfeit.mkv', u'label': u'1x01. Pilot'}, {u'episode': 2, u'episodeid': 340, u'file': u'/storage/Win7/Seriale/The Americans (2013)/The.Americans.2013.S01E02.720p.BluRay.x264-Counterfeit.mkv', u'label': u'1x02. Zegar'}, {u'episode': 3, u'episodeid': 341, u'file': u'/storage/Win7/Seriale/The Americans (2013)/The.Americans.2013.S01E03.720p.BluRay.x264-Counterfeit.mkv', u'label': u'1x03. Gregory'}, {u'episode': 4, u'episodeid': 342, u'file': u'/storage/Win7/Seriale/The Americans (2013)/The.Americans.2013.S01E04.720p.BluRay.x264-Counterfeit.mkv', u'label': u'1x04. Pod kontrol\u0105'}, {u'episode': 5, u'episodeid': 343, u'file': u'/storage/Win7/Seriale/The Americans (2013)/The.Americans.2013.S01E05.720p.BluRay.x264-Counterfeit.mkv', u'label': u'1x05. COMINT'}, {u'episode': 6, u'episodeid': 344, u'file': u'/storage/Win7/Seriale/The Americans (2013)/The.Americans.2013.S01E06.720p.BluRay.x264-Counterfeit.mkv', u'label': u'1x06. Zaufaj mi'}, {u'episode': 7, u'episodeid': 345, u'file': u'/storage/Win7/Seriale/The Americans (2013)/The.Americans.2013.S01E07.720p.BluRay.x264-Counterfeit.mkv', u'label': u'1x07. Obowi\u0105zek i honor'}, {u'episode': 8, u'episodeid': 346, u'file': u'/storage/Win7/Seriale/The Americans (2013)/The.Americans.2013.S01E08.720p.BluRay.x264-Counterfeit.mkv', u'label': u'1x08. Obustronnie gwarantowana destrukcja'}, {u'episode': 9, u'episodeid': 347, u'file': u'/storage/Win7/Seriale/The Americans (2013)/The.Americans.2013.S01E09.720p.BluRay.x264-Counterfeit.mkv', u'label': u'1x09. Bezpieczny dom'}, {u'episode': 10, u'episodeid': 348, u'file': u'/storage/Win7/Seriale/The Americans (2013)/The.Americans.2013.S01E10.720p.BluRay.x264-Counterfeit.mkv', u'label': u'1x10. Tylko Ty'}, {u'episode': 11, u'episodeid': 349, u'file': u'/storage/Win7/Seriale/The Americans (2013)/The.Americans.2013.S01E11.720p.BluRay.x264-Counterfeit.mkv', u'label': u'1x11. Ukryta wojna'}, {u'episode': 12, u'episodeid': 350, u'file': u'/storage/Win7/Seriale/The Americans (2013)/The.Americans.2013.S01E12.720p.BluRay.x264-Counterfeit.mkv', u'label': u'1x12. Przysi\u0119ga'}, {u'episode': 13, u'episodeid': 351, u'file': u'/storage/Win7/Seriale/The Americans (2013)/The.Americans.2013.S01E13.720p.BluRay.x264-Counterfeit.mkv', u'label': u'1x13. Pu\u0142kownik'}], u'limits': {u'start': 0, u'total': 13, u'end': 13}}
17:47:15 176.830475 T:2916394048  NOTICE: [trakt] [traktPlayer] onPlayBackStarted() - This is a single episode.
17:47:15 176.831223 T:2916394048  NOTICE: [trakt] Queuing for dispatch: {'action': 'started', 'type': u'episode', 'id': 339}
17:47:15 177.138733 T:2916394048  NOTICE: [trakt] Queued dispatch: {u'action': u'started', u'type': u'episode', u'id': 339}
17:47:16 177.139496 T:2916394048  NOTICE: [trakt] Dispatch: {u'action': u'started', u'type': u'episode', u'id': 339}
17:47:16 177.140427 T:2916394048  NOTICE: [trakt] [Scrobbler] playbackStarted(data: {u'type': u'episode', u'id': 339})
17:47:16 177.141418 T:2916394048  NOTICE: [trakt] [Scrobbler] Watching: episode
17:47:17 178.359161 T:2916394048  NOTICE: [trakt] getEpisodeDetailsFromKodi(): {u'episodedetails': {u'tvshowid': 29, u'episode': 1, u'season': 1, u'episodeid': 339, u'label': u'Pilot', u'uniqueid': {u'unknown': u'4383263'}, u'showtitle': u'The Americans (2013)'}}
17:47:17 178.549362 T:2916394048  NOTICE: [trakt] getShowDetailsFromKodi(): {u'tvshowdetails': {u'imdbnumber': u'261690', u'tvshowid': 29, u'year': 2013, u'label': u'The Americans (2013)'}}
17:47:17 178.550598 T:2916394048  NOTICE: [trakt] [Scrobbler] scrobble()
17:47:17 178.570297 T:2916394048   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ValueError'>
                                            Error Contents: Missing media item
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/script.trakt/default.py", line 13, in <module>
                                                traktService().run()
                                              File "/storage/.kodi/addons/script.trakt/service.py", line 102, in run
                                                self._dispatch(data)
                                              File "/storage/.kodi/addons/script.trakt/service.py", line 38, in _dispatch
                                                self.scrobbler.playbackStarted(data)
                                              File "/storage/.kodi/addons/script.trakt/scrobbler.py", line 173, in playbackStarted
                                                self.__scrobble('start')
                                              File "/storage/.kodi/addons/script.trakt/scrobbler.py", line 252, in __scrobble
                                                response = self.traktapi.scrobbleEpisode(self.traktShowSummary, self.traktSummaryInfo, watchedPercent, status)
                                              File "/storage/.kodi/addons/script.trakt/traktapi.py", line 95, in scrobbleEpisode
                                                progress=math.ceil(percent))
                                              File "/storage/.kodi/addons/script.trakt/trakt/interfaces/base/__init__.py", line 33, in wrap
                                                return func(*args, **kwargs)
                                              File "/storage/.kodi/addons/script.trakt/trakt/interfaces/base/__init__.py", line 17, in wrap
                                                return func(*args, **kwargs)
                                              File "/storage/.kodi/addons/script.trakt/trakt/interfaces/scrobble.py", line 47, in start
                                                **kwargs
                                              File "/storage/.kodi/addons/script.trakt/trakt/interfaces/base/__init__.py", line 33, in wrap
                                                return func(*args, **kwargs)
                                              File "/storage/.kodi/addons/script.trakt/trakt/interfaces/base/__init__.py", line 17, in wrap
                                                return func(*args, **kwargs)
                                              File "/storage/.kodi/addons/script.trakt/trakt/interfaces/scrobble.py", line 14, in action
                                                raise ValueError('Missing media item')
                                            ValueError: Missing media item
                                            -->End of Python script error report<--
17:47:21 182.456894 T:2692404288  NOTICE: OMXClock using video as reference
17:47:22 183.324188 T:2684015680 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
17:47:34 195.235153 T:2692404288 WARNING: Previous line repeats 1 times.
17:47:34 195.235382 T:2692404288  NOTICE: OMXClock using audio as reference
17:47:37 198.432220 T:3040464896  NOTICE: CDVDPlayer::CloseFile()


Messages In This Thread
RE: [RELEASE] trakt.tv tv/movie scrobbler - by darzur - 2015-01-26, 18:53
Logout Mark Read Team Forum Stats Members Help
[RELEASE] trakt.tv tv/movie scrobbler13