Kodi Community Forum

Full Version: [RELEASE] trakt.tv tv/movie scrobbler
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The pluding works intermittently for me. It'll usually work for two episodes or so and then just stop scrobbling until I restart XBMC. Kind of annoying. I checked out the xbmc.log as recommended. Here is the only error I saw:

Code:
13:35:54 T:7472   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'httplib.BadStatusLine'>
                                            Error Contents:
                                            Traceback (most recent call last):
                                              File "C:\Users\Glen Lambert\AppData\Roaming\XBMC\addons\script.trakt\default.py", line 13, in <module>
                                                traktService().run()
                                              File "C:\Users\Glen Lambert\AppData\Roaming\XBMC\addons\script.trakt\service.py", line 85, in run
                                                self._dispatch(data)
                                              File "C:\Users\Glen Lambert\AppData\Roaming\XBMC\addons\script.trakt\service.py", line 38, in _dispatch
                                                self.scrobbler.playbackEnded()
                                              File "C:\Users\Glen Lambert\AppData\Roaming\XBMC\addons\script.trakt\scrobbler.py", line 195, in playbackEnded
                                                ratingCheck(self.curVideo['type'], self.traktSummaryInfo, self.watchedTime, self.videoDuration, self.playlistLength)
                                              File "C:\Users\Glen Lambert\AppData\Roaming\XBMC\addons\script.trakt\rating.py", line 25, in ratingCheck
                                                rateMedia(media_type, summary_info)
                                              File "C:\Users\Glen Lambert\AppData\Roaming\XBMC\addons\script.trakt\rating.py", line 61, in rateMedia
                                                rateOnTrakt(gui.rating, gui.media_type, gui.media)
                                              File "C:\Users\Glen Lambert\AppData\Roaming\XBMC\addons\script.trakt\rating.py", line 86, in rateOnTrakt
                                                data = globals.traktapi.rateEpisode(params)
                                              File "C:\Users\Glen Lambert\AppData\Roaming\XBMC\addons\script.trakt\traktapi.py", line 475, in rateEpisode
                                                return self.rate('episode', data)
                                              File "C:\Users\Glen Lambert\AppData\Roaming\XBMC\addons\script.trakt\traktapi.py", line 472, in rate
                                                return self.traktRequest('POST', url, data, passVersions=True)
                                              File "C:\Users\Glen Lambert\AppData\Roaming\XBMC\addons\script.trakt\traktapi.py", line 159, in traktRequest
                                                raw = self.__getData(url, jdata)
                                              File "C:\Users\Glen Lambert\AppData\Roaming\XBMC\addons\script.trakt\traktapi.py", line 76, in __getData
                                                response = urlopen(req, timeout=timeout)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 126, in urlopen
                                                return _opener.open(url, data, timeout)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 391, in open
                                                response = self._open(req, data)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 409, in _open
                                                '_open', req)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 369, in _call_chain
                                                result = func(*args)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 1178, in https_open
                                                return self.do_open(httplib.HTTPSConnection, req)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 1143, in do_open
                                                r = h.getresponse()
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\httplib.py", line 990, in getresponse
                                                response.begin()
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\httplib.py", line 391, in begin
                                                version, status, reason = self._read_status()
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\httplib.py", line 355, in _read_status
                                                raise BadStatusLine(line)
                                            BadStatusLine
                                            -->End of Python script error report<--
13:35:54 T:2460   ERROR: CLocalizeStrings::ClearBlock: Trying to clear non existent block C:\Users\Glen Lambert\AppData\Roaming\XBMC\addons\script.trakt

Here is the full log if it'll help: https://dl.dropboxusercontent.com/u/26451868/xbmc.log

If anyone wants to take a look I'd greatly appreciate it.
BadStatusLine exception is fixed in latest git version.
My collection is not syncing properly, I tried the github version as well.

https://docs.google.com/file/d/0B0E4WBnw...Zhb1k/edit

http://trakt.tv/user/vishal1082
I have 6060 episodes in xbmc and every info has been downloaded from tvdb.. So no episodes outside tvdb data.. but when I try to sync them to Trakt, it shows 6119 episodes.. Shouldn't trakt also display the exact count?
(2013-05-08, 07:20)vishal1082 Wrote: [ -> ]My collection is not syncing properly, I tried the github version as well.

https://docs.google.com/file/d/0B0E4WBnw...Zhb1k/edit

http://trakt.tv/user/vishal1082

You need to turn on debug in the trakt settings so that it gives more details what is happening. Then we can take a look.

(2013-05-08, 07:28)akya Wrote: [ -> ]I have 6060 episodes in xbmc and every info has been downloaded from tvdb.. So no episodes outside tvdb data.. but when I try to sync them to Trakt, it shows 6119 episodes.. Shouldn't trakt also display the exact count?

It should ideally match, yes. Can you tell what extra data is in trakt? Also worth posting a log file to look at.
(2013-05-08, 07:33)rectifyer Wrote: [ -> ]You need to turn on debug in the trakt settings so that it gives more details what is happening. Then we can take a look.

Yeah I realised my stupidity and did that and edited the post with new link, should have the debug info now Smile
What is incorrect about the collection? The numbers seem to match up when comparing your log and the trakt website.
(2013-05-08, 07:46)rectifyer Wrote: [ -> ]What is incorrect about the collection? The numbers seem to match up when comparing your log and the trakt website.

http://i.imgur.com/3moOgBl.png

It shows this on my profile http://i.imgur.com/3moOgBl.png but when I click on "10 shows", its empty. http://i.imgur.com/8L1JzjN.png
(2013-05-08, 07:33)rectifyer Wrote: [ -> ]It should ideally match, yes. Can you tell what extra data is in trakt? Also worth posting a log file to look at.

Oops sorry, I just cleaned all the shows from Trakt collection and then synced and matched each show's episodes... My XBMC had some duplicates which stayed even after cleaning library.. Now my Trakt and XBMC shows the same number.. Sorry for the trouble.. Trakt is an awesome service you provide btw Smile

http://trakt.tv/user/akya and Image Cool
(2013-05-08, 07:50)vishal1082 Wrote: [ -> ]
(2013-05-08, 07:46)rectifyer Wrote: [ -> ]What is incorrect about the collection? The numbers seem to match up when comparing your log and the trakt website.

http://i.imgur.com/3moOgBl.png

It shows this on my profile http://i.imgur.com/3moOgBl.png but when I click on "10 shows", its empty. http://i.imgur.com/8L1JzjN.png

Untick the 'Hide Watched' option in your collection on the trakt.tv website.
And now I feel extremely stupid. Sorry for wasting everybody's time.
When i watch tv shows the show up as "scrobbled" on trakt website, but movies show up as "seen it". Is there any significance as to why this happens?
Do you have "Scrobble movies" activate in Scrobbling Settings? Addon marks items as "Seen" only when doing manual/automatic library synchronization. If a movie is not scrobbled after you watch it in xbmc it will be marked as seen on trakt.tv during next library synchronization.
yes I have scrobble movies enabled. what does scrobble even mean;
(2013-05-08, 22:27)therock003 Wrote: [ -> ]yes I have scrobble movies enabled. what does scrobble even mean;

Confused

Why do u use trakt addon? Just to sync collections?
Scrobble = publish on trakt what u are watching.