[RELEASE] trakt.tv tv/movie scrobbler
nate1280, I'm running the latest GIT and I'm getting this error:

episodes = data['episodes']
KeyError: 'episodes'

Code:
22:08:38 T:2817262656  NOTICE: [trakt] [Movies Sync] Movies on trakt.tv (803), movies in XBMC (82).
22:08:38 T:2817262656  NOTICE: [trakt] [Movies Sync] Complete.
22:08:38 T:3038060544   DEBUG: ------ Window Init (DialogKaiToast.xml) ------
22:08:38 T:2817262656  NOTICE: [trakt] [Episodes Sync] Getting show data from XBMC
22:08:38 T:2817262656   DEBUG: JSONRPC: Incoming request: {"params": {"properties": ["title", "imdbnumber", "year"]}, "jsonrpc": "2.0", "method": "VideoLibrary.GetTVShows", "id": 0}
22:08:38 T:2817262656   DEBUG: JSONRPC: Calling videolibrary.gettvshows
22:08:38 T:2817262656   DEBUG: RunQuery took 166 ms for 42 items query: SELECT * FROM tvshowview
22:08:39 T:2817262656  NOTICE: [trakt] [Episodes Sync] XBMC JSON Result: '[{u'imdbnumber': u'253350', u'tvshowid': 39, u'title': u'Anger Management', u'year': 2012, u'label': u'Anger Management'}, {u'imdbnumber': u'257655', u'tvshowid': 38, u'title': u'Arrow', u'year': 2012, u'label': u'Arrow'}, {u'imdbnumber': u'259765', u'tvshowid': 37, u'title': u'Banshee', u'year': 2013, u'label': u'Banshee'}, {u'imdbnumber': u'262414', u'tvshowid': 54, u'title': u'Bates Motel', u'year': 2013, u'label': u'Bates Motel'}, {u'imdbnumber': u'258959', u'tvshowid': 46, u'title': u'Beauty and the Beast (2012)', u'year': 2012, u'label': u'Beauty and the Beast (2012)'}, {u'imdbnumber': u'75682', u'tvshowid': 34, u'title': u'Bones', u'year': 2005, u'label': u'Bones'}, {u'imdbnumber': u'80270', u'tvshowid': 33, u'title': u'Burn Notice', u'year': 2007, u'label': u'Burn Notice'}, {u'imdbnumber': u'83462', u'tvshowid': 43, u'title': u'Castle (2009)', u'year': 2009, u'label': u'Castle (2009)'}, {u'imdbnumber': u'260947', u'tvshowid': 42, u'title': u'Cracked (2013)', u'year': 2013, u'label': u'Cracked (2013)'}, {u'imdbnumber': u'242521', u'tvshowid': 45, u'title': u'Dallas (2012)', u'year': 2012, u'label': u'Dallas (2012)'}, {u'imdbnumber': u'79168', u'tvshowid': 49, u'title': u'Friends', u'year': 1994, u'label': u'Friends'}, {u'imdbnumber': u'121361', u'tvshowid': 53, u'title': u'Game of Thrones', u'year': 2011, u'label': u'Game of Thrones'}, {u'imdbnumber': u'167571', u'tvshowid': 28, u'title': u'Happy Endings', u'year': 2011, u'label': u'Happy Endings'}, {u'imdbnumber': u'248880', u'tvshowid': 27, u'title': u'Hart of Dixie', u'year': 2011, u'label': u'Hart of Dixie'}, {u'imdbnumber': u'247897', u'tvshowid': 26, u'title': u'Homeland', u'year': 2011, u'label': u'Homeland'}, {u'imdbnumber': u'262980', u'tvshowid': 48, u'title': u'House of Cards (US)', u'year': 2013, u'label': u'House of Cards (US)'}, {u'imdbnumber': u'75760', u'tvshowid': 25, u'title': u'How I Met Your Mother', u'year': 2005, u'label': u'How I Met Your Mother'}, {u'imdbnumber': u'261742', u'tvshowid': 55, u'title': u'In the Flesh', u'year': 2013, u'label': u'In the Flesh'}, {u'imdbnumber': u'164501', u'tvshowid': 24, u'title': u'Mike & Molly', u'year': 2010, u'label': u'Mike & Molly'}, {u'imdbnumber': u'95011', u'tvshowid': 23, u'title': u'Modern Family', u'year': 2009, u'label': u'Modern Family'}, {u'imdbnumber': u'248682', u'tvshowid': 21, u'title': u'New Girl', u'year': 2011, u'label': u'New Girl'}, {u'imdbnumber': u'248835', u'tvshowid': 47, u'title': u'Once Upon a Time (2011)', u'year': 2011, u'label': u'Once Upon a Time (2011)'}, {u'imdbnumber': u'248742', u'tvshowid': 52, u'title': u'Person of Interest', u'year': 2011, u'label': u'Person of Interest'}, {u'imdbnumber': u'259052', u'tvshowid': 50, u'title': u'Red Widow', u'year': 2013, u'label': u'Red Widow'}, {u'imdbnumber': u'248837', u'tvshowid': 18, u'title': u'Revenge', u'year': 2011, u'label': u'Revenge'}, {u'imdbnumber': u'258823', u'tvshowid': 57, u'title': u'Revolution', u'year': 2012, u'label': u'Revolution'}, {u'imdbnumber': u'260485', u'tvshowid': 17, u'title': u'Ripper Street', u'year': 2012, u'label': u'Ripper Street'}, {u'imdbnumber': u'72218', u'tvshowid': 16, u'title': u'Smallville', u'year': 2001, u'label': u'Smallville'}, {u'imdbnumber': u'129261', u'tvshowid': 15, u'title': u'Spartacus', u'year': 2010, u'label': u'Spartacus'}, {u'imdbnumber': u'247808', u'tvshowid': 14, u'title': u'Suits', u'year': 2011, u'label': u'Suits'}, {u'imdbnumber': u'261690', u'tvshowid': 41, u'title': u'The Americans (2013)', u'year': 2013, u'label': u'The Americans (2013)'}, {u'imdbnumber': u'265720', u'tvshowid': 56, u'title': u'The Bible', u'year': 2013, u'label': u'The Bible'}, {u'imdbnumber': u'80379', u'tvshowid': 10, u'title': u'The Big Bang Theory', u'year': 2007, u'label': u'The Big Bang Theory'}, {u'imdbnumber': u'258744', u'tvshowid': 9, u'title': u'The Following', u'year': 2013, u'label': u'The Following'}, {u'imdbnumber': u'95451', u'tvshowid': 8, u'title': u'The Good Wife', u'year': 2009, u'label': u'The Good Wife'}, {u'imdbnumber': u'82459', u'tvshowid': 7, u'title': u'The Mentalist', u'year': 2008, u'label': u'The Mentalist'}, {u'imdbnumber': u'95021', u'tvshowid': 6, u'title': u'The Middle', u'year': 2009, u'label': u'The Middle'}, {u'imdbnumber': u'95491', u'tvshowid': 5, u'title': u'The Vampire Diaries', u'year': 2009, u'label': u'The Vampire Diaries'}, {u'imdbnumber': u'247824', u'tvshowid': 58, u'title': u'The Voice (US)', u'year': 2011, u'label': u'The Voice (US)'}, {u'imdbnumber': u'72227', u'tvshowid': 3, u'title': u'Two and a Half Men', u'year': 2003, u'label': u'Two and a Half Men'}, {u'imdbnumber': u'260449', u'tvshowid': 51, u'title': u'Vikings', u'year': 2013, u'label': u'Vikings'}, {u'imdbnumber': u'258773', u'tvshowid': 44, u'title': u'Zero Hour (2013)', u'year': 2013, u'label': u'Zero Hour (2013)'}]'
22:08:39 T:2817262656  NOTICE: [trakt] [Episodes Sync] Getting episode data from XBMC
22:08:39 T:2817262656   DEBUG: JSONRPC: Incoming request: {"params": {"tvshowid": 39, "properties": ["season", "episode", "playcount", "uniqueid"]}, "jsonrpc": "2.0", "method": "VideoLibrary.GetEpisodes", "id": 0}
22:08:39 T:2817262656   DEBUG: JSONRPC: Calling videolibrary.getepisodes
22:08:39 T:2817262656   DEBUG: GetStackedTvShowList query: select idShow from tvshow where c00 like (select c00 from tvshow where idShow=39) order by idShow
22:08:39 T:2817262656   DEBUG: RunQuery took 24 ms for 0 items query: select * from episodeview  WHERE episodeview.idShow = 39
22:08:39 T:2817262656   ERROR: Exception in thread trakt-sync:
                                            Traceback (most recent call last):
                                              File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
                                                self.run()
                                              File "/home/pi/.xbmc/addons/script.trakt/service.py", line 138, in run
                                                sync.sync()
                                              File "/home/pi/.xbmc/addons/script.trakt/sync.py", line 641, in sync
                                                self.syncEpisodes()
                                              File "/home/pi/.xbmc/addons/script.trakt/sync.py", line 358, in syncEpisodes
                                                xbmcShows = self.xbmcLoadShows()
                                              File "/home/pi/.xbmc/addons/script.trakt/sync.py", line 127, in xbmcLoadShows
                                                episodes = data['episodes']
                                            KeyError: 'episodes'
22:08:45 T:3038060544   DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------


Messages In This Thread
RE: [RELEASE] trakt.tv tv/movie scrobbler - by fernandovg - 2013-04-03, 03:10
Logout Mark Read Team Forum Stats Members Help
[RELEASE] trakt.tv tv/movie scrobbler13