Kodi Community Forum
Trakt.tv v3 - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Service Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=152)
+---- Thread: Trakt.tv v3 (/showthread.php?tid=220547)



RE: Trakt.tv v3 - Razze - 2017-01-03

(2017-01-02, 06:04)dgrayfromdc Wrote:
(2016-12-03, 19:17)dgrayfromdc Wrote: Hello,

I'm a long time XBMC/Kodi user. I wanted to use Trakt for Plex sync, and online database backup, among other things. However, I can't seem to get Trakt working on Kodi. I've installed from the repository using Kodi 16.1, and can't seem to get it configured. I get a non-descript pop-up that an error has occurred. I've tried searching the thread, and couldn't find anything that matched the error I'm seeing. I turned on debugging and this is a log excerpt from the event that caused the error notification:

Code:
1:45:08 T:139831412684544   DEBUG: CurlFile::Open(0x7f2ce802ba20) http://mirrors.kodi.tv/addons/jarvis/script.trakt/script.trakt-3.1.7.zip
11:45:08 T:139831412684544   DEBUG: CCurlFile::Open - effective URL: <http://mirror.wdc1.us.leaseweb.net/xbmc/addons/jarvis/script.trakt/script.trakt-3.1.7.zip>
11:45:10 T:139831412684544    INFO: ADDON: cpluff: 'Could not read plug-in directory /usr/lib/kodi/addons: No such file or directory'
11:45:10 T:139831518689024   DEBUG: Thread LanguageInvoker start, auto delete: false
11:45:10 T:139831518689024    INFO: initializing python engine.
11:45:10 T:139831518689024   DEBUG: CPythonInvoker(8, /home/dontrel/.kodi/addons/script.trakt/default.py): start processing
11:45:10 T:139832324516160   DEBUG: CGUIMediaWindow::GetDirectory (addons://repository.xbmc.org/xbmc.addon.executable)
11:45:10 T:139832324516160   DEBUG:   ParentPath = [addons://repository.xbmc.org/xbmc.addon.executable]
11:45:10 T:139831518689024   DEBUG: -->Python Interpreter Initialized<--
11:45:10 T:139831518689024   DEBUG: CPythonInvoker(8, /home/dontrel/.kodi/addons/script.trakt/default.py): the source file to load is "/home/dontrel/.kodi/addons/script.trakt/default.py"
11:45:10 T:139831518689024   DEBUG: CPythonInvoker(8, /home/dontrel/.kodi/addons/script.trakt/default.py): setting the Python path to /home/dontrel/.kodi/addons/script.trakt:/home/dontrel/.kodi/addons/script.module.addon.signals/lib:/home/dontrel/.kodi/addons/script.module.arrow/lib:/home/dontrel/.kodi/addons/script.module.dateutil/lib:/home/dontrel/.kodi/addons/script.module.requests/lib:/home/dontrel/.kodi/addons/script.module.simplejson/lib:/home/dontrel/.kodi/addons/script.module.six/lib:/home/dontrel/.kodi/addons/script.module.trakt/lib:/usr/lib/python2.7:/usr/lib/python2.7/plat-x86_64-linux-gnu:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/local/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages/PILcompat:/usr/lib/python2.7/dist-packages/gtk-2.0:/usr/lib/python2.7/dist-packages/ubuntu-sso-client
11:45:10 T:139831518689024   DEBUG: CPythonInvoker(8, /home/dontrel/.kodi/addons/script.trakt/default.py): entering source directory /home/dontrel/.kodi/addons/script.trakt
11:45:10 T:139831518689024   DEBUG: CPythonInvoker(8, /home/dontrel/.kodi/addons/script.trakt/default.py): instantiating addon using automatically obtained id of "script.trakt" dependent on version 2.24.0 of the xbmc.python api
11:45:10 T:139831421077248   DEBUG: Thread BackgroundLoader start, auto delete: false
11:45:10 T:139832324516160   DEBUG: ------ Window Init (DialogKaiToast.xml) ------
11:45:10 T:139831421077248   DEBUG: Thread BackgroundLoader 139831421077248 terminating
11:45:12 T:139831518689024   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'sqlite3.OperationalError'>
                                            Error Contents: unable to open database file
                                            Traceback (most recent call last):
                                              File "/home/dontrel/.kodi/addons/script.trakt/default.py", line 6, in <module>
                                                from service import traktService
                                              File "/home/dontrel/.kodi/addons/script.trakt/service.py", line 21, in <module>
                                                class traktService:
                                              File "/home/dontrel/.kodi/addons/script.trakt/service.py", line 25, in traktService
                                                dispatchQueue = sqlitequeue.SqliteQueue()
                                              File "/home/dontrel/.kodi/addons/script.trakt/sqlitequeue.py", line 60, in __init__
                                                with self._get_conn() as conn:
                                              File "/home/dontrel/.kodi/addons/script.trakt/sqlitequeue.py", line 76, in _get_conn
                                                self._connection_cache[id] = sqlite3.Connection(self.path, timeout=60)
                                            OperationalError: unable to open database file
                                            -->End of Python script error report<--
11:45:12 T:139831518689024    INFO: Python script stopped

If it helps, I have an Ubuntu machine with MySQL sharing enabled, and all of my content is shared from the same system via SMB. All content is indexed (even on the local machine) via SMB per instructions in the wiki.

Anyone?

Look for a file named queue.db and remove it

(2017-01-02, 11:42)RKMFlorida Wrote: Trakt is my favorite Kodi Add-on. Amazing tool and service.

I just upgraded from my prior OpenElec build to a new LibreElec build running Kodi v16.1. I'm also running Trakt v3.10

When I restored my add-on's, Trakt wouldn't work.

To get Trakt working, I deleted the Trakt directory from the userdata/addon_data directory, then re-installed. Once I did that, I was able to uninstall and activate ... everything seems to work great.

The problem is that Trakt will not sync my watched-status back to my new Kodi install, no matter what I try..

I've verified everything:
  • I've checked that all shows are properly indexed by Kodi and showing the the DB.
  • I've checked that Trakt settings are correctly set to sync for TV/Movies
  • I've reboot and re-run Trakt several times. It shows a status like it's updating movies/TV episodes, but nothing in my library shows as watched, despite this.

Can anyone suggest a next-step in locating the source of the problem?

Thank you in advance!

Try to create a logfile like mentioned in the first post. Then retry and check the logfile, there will probably be a moment, where it breaks.

(2017-01-02, 23:54)shred00 Wrote: So I've installed the plugin on Jarvis and I can see that when I start watching a show, it shows I am watching it on my dashboard on the trakt web interface so I am successfully scrobbling, it seems.

But where in the trakt web interface will it show that I have watched it? I would have thought it would have been in History but I don't see the show I am watching being added there. The only thing there are shows that I have told trakt, through the web interface, that I have watched.

They should be set as watched, when you FINISH watching the movie. Be aware, that you need to have it enabled in the settings.


RE: Trakt.tv v3 - shred00 - 2017-01-03

(2017-01-03, 00:37)Razze Wrote: They should be set as watched, when you FINISH watching the movie. Be aware, that you need to have it enabled in the settings.

Hrm. I thought the Offset scrobble Start by X minutes was how much you had to watch before it was scrobbled as watched. What does that setting do then?

So can I just jump to 5 seconds before the finish and let it play until it's done to get a scrobble?

What if I'm watching something and stop it before the credits finish rolling? Does it not scrobble that I watched it?


RE: Trakt.tv v3 - TheStretchedElf - 2017-01-03

Not sure if this has been asked before but I'd really like scrobbling to be optional per play rather than automatic for everything. I don't always want to scrobble, nor do I want everything the kids watch to scrobble.


RE: Trakt.tv v3 - Razze - 2017-01-03

(2017-01-03, 01:08)shred00 Wrote:
(2017-01-03, 00:37)Razze Wrote: They should be set as watched, when you FINISH watching the movie. Be aware, that you need to have it enabled in the settings.

Hrm. I thought the Offset scrobble Start by X minutes was how much you had to watch before it was scrobbled as watched. What does that setting do then?

So can I just jump to 5 seconds before the finish and let it play until it's done to get a scrobble?

What if I'm watching something and stop it before the credits finish rolling? Does it not scrobble that I watched it?

The offset is when to start scobbling, if you start watching something. You might want watch 30sec and decide you don't want to watch something right now, then you won't end up with a scrobble.

What your looking for is something trakt does by itself. As far as I know the default is at 80% watched of an item. If you drop out after that, it will set it to watched.


RE: Trakt.tv v3 - shred00 - 2017-01-04

(2017-01-03, 16:33)Razze Wrote: The offset is when to start scobbling, if you start watching something.

As in "this is what I am watching, right now", as opposed to "this is what I watched to completion", yes?

(2017-01-03, 16:33)Razze Wrote: What your looking for is something trakt does by itself. As far as I know the default is at 80% watched of an item. If you drop out after that, it will set it to watched.

Yeah, it does seem to be working within the limitations of Kodi and Trakt. That is everything is functioning as expected.

But what would be really cool is support for multiple users. I realise this is bigger than just your plugin. It would require buy-in from Kodi, or at least perhaps another plugin.

The problem as I see it is that typically, at least in family or shared-living situations, more than one person watches TV at a time. But particularly in family situations different combinations of people watch different things and things that (for example) parents watch might not be suitable for viewing by their young children. So given that...

What would be really cool is that each person in a group situation could have a trakt account and when a group of people watch something, all of their accounts are updated with what was watched.

Then with this data of the multiple viewers, when any combination of those viewers wants to watch something, a display of things to watch could be created that would be the union of shows that the current combination of people watch. This way when the whole family sits down, they are only presented with a list of shows that they all watch and not, say, some of the more violent or otherwise adult-oriented (i.e. later prime-time) shows that the parents watch. When Dad and Son sit down, they see the shows they both watch. An option to exclude shows that Mom watches also could be cool so that those are only displayed when Mom, Dad and Son are present.

Similarly, then when only the parents are watching, the 9PM-11PM shows that they might watch are displayed as options but not the ones they watch with the children.

Anyway, just a thought. I think however you slice it though, in a lot of cases (i.e. any case which is not a single-person situation) a single trakt account per Kodi installation I don't think is the right match.

In the interim, perhaps this can be achieved with Kodi profiles and a per-profile trakt account. I think it would be less flexible though since the combinations could yield a number of profiles and required trakt accounts and they wouldn't really track viewing preferences all that accurately per person.


RE: Trakt.tv v3 - Jezze - 2017-01-06

Ive used this great addon few years now. I was wondering, is it possible get it work like this. I have many tv shows under my trakt account. Can those tv shows imported to kodi library so i can see them on every computer and trakt is authorized on all my computers. And when is select epusode from library it can open like quasar or salts stream?


RE: Trakt.tv v3 - jctennis - 2017-01-06

(2017-01-06, 12:22)Jezze Wrote: Ive used this great addon few years now. I was wondering, is it possible get it work like this. I have many tv shows under my trakt account. Can those tv shows imported to kodi library so i can see them on every computer and trakt is authorized on all my computers. And when is select epusode from library it can open like quasar or salts stream?
Those are banned addons man. You won't get any help here with them.

Sent from my Pixel


RE: Trakt.tv v3 - RKMFlorida - 2017-01-06

@Razze, thank you so much for your work.

It seems my problem may not be with the trakt.tv Kodi add-on. When I examine the log, I see that it's returning no movies or TV shows.

Although I have thousands of history entries with trakt, you can see in the log below that it's returning Status 200 (Success) -- but no movies or TV shows are listed in either query.

I have written Trakt about this. I'm still going to post the log here, in case you think Kodi could be related in any way (eg some OAuth problem, etc). Also, so that if someone else searches for this issue, they'll see this thread.

Code:
09:00:04 T:547348279520   DEBUG: [script.trakt] sync: Starting synchronization with Trakt.tv
09:00:05 T:547348279520   DEBUG: [script.trakt] syncMovies: [Movies Sync] Getting movie data from Kodi
09:00:05 T:547953856512   DEBUG: ------ Window Init (DialogKaiToast.xml) ------
09:00:05 T:547953856512   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/ImageLib-aarch64.so)
09:00:05 T:547953856512   DEBUG: Loading: /usr/lib/kodi/system/ImageLib-aarch64.so
09:00:05 T:547348279520   DEBUG: RunQuery took 43 ms for 1151 items query: select * from movie_view
09:00:06 T:547348279520   DEBUG: [script.trakt] syncMovies: [Movies Sync] Getting movie collection from Trakt.tv
09:00:06 T:547348279520    INFO: [script.trakt] requests.packages.urllib3.connectionpool: Resetting dropped connection: api-v2launch.trakt.tv
09:00:07 T:547348279520   DEBUG: [script.trakt] requests.packages.urllib3.connectionpool: "GET /sync/collection/movies HTTP/1.1" 200 None
09:00:08 T:547348279520   DEBUG: [script.trakt] syncMovies: [Movies Sync] Error getting Trakt.tv movie list, aborting movie Sync.
09:00:08 T:547348279520   DEBUG: [script.trakt] syncEpisodes: [Episodes Sync] Getting show data from Kodi
09:00:08 T:547348279520   DEBUG: RunQuery took 25 ms for 136 items query: SELECT * FROM tvshow_view
09:00:08 T:547348279520   DEBUG: [script.trakt] syncEpisodes: [Episode Sync] Getting shows from kodi finished [{'rating': 0, u'tvshowid': 1, u'title': u"Paula's Home Cooking", 'ids': {'tvdb': u'137721'}, u'userrating': 0, u'year': 2002}, {'rating': 0, u'tvshowid': 2, u'title': u'SVT Documentary', 'ids': {'tvdb': u'82449'}, u'userrating': 0, u'year': 0}, {'rating': 0, u'tvshowid': 3, u'title': u'Home Improvement', 'ids': {'tvdb': u'77537'}, u'userrating': 0, u'year': 1991}, {'rating': 0, u'tvshowid': 4, u'title': u'Action', 'ids': {'tvdb': u'77943'}, u'userrating': 0, u'year': 1999}, {'rating': 0, u'tvshowid': 5, u'title': u"Don't Trust the B---- in Apartment 23", 'ids': {'tvdb': u'248812'}, u'userrating': 0, u'year': 2012}, {'rating': 0, u'tvshowid': 6, u'title': u'Arrested Development', 'ids': {'tvdb': u'72173'}, u'userrating': 0, u'year': 2003}, {'rating': 0, u'tvshowid': 7, u'title': u'Ben and Kate', 'ids': {'tvdb': u'259009'}, u'userrating': 0, u'year': 2012}, {'rating': 0, u'tvshowid': 8, u'title': u'BrainDead', 'ids': {'tvdb': u'309052'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 9, u'title': u'Derren Brown: The Experiments', 'ids': {'tvdb': u'252707'}, u'userrating': 0, u'year': 2011}, {'rating': 0, u'tvshowid': 10, u'title': u'Endgame', 'ids': {'tvdb': u'228031'}, u'userrating': 0, u'year': 2011}, {'rating': 0, u'tvshowid': 11, u'title': u'Happy Endings', 'ids': {'tvdb': u'167571'}, u'userrating': 0, u'year': 2011}, {'rating': 0, u'tvshowid': 12, u'title': u"How It's Made", 'ids': {'tvdb': u'79485'}, u'userrating': 0, u'year': 2001}, {'rating': 0, u'tvshowid': 13, u'title': u'Hunted', 'ids': {'tvdb': u'259702'}, u'userrating': 0, u'year': 2012}, {'rating': 0, u'tvshowid': 14, u'title': u'Hustle', 'ids': {'tvdb': u'73028'}, u'userrating': 0, u'year': 2004}, {'rating': 0, u'tvshowid': 15, u'title': u'Mad Dogs (US)', 'ids': {'tvdb': u'295828'}, u'userrating': 0, u'year': 2015}, {'rating': 0, u'tvshowid': 17, u'title': u'Psych', 'ids': {'tvdb': u'79335'}, u'userrating': 0, u'year': 2006}, {'rating': 0, u'tvshowid': 18, u'title': u'Reaper', 'ids': {'tvdb': u'80345'}, u'userrating': 0, u'year': 2007}, {'rating': 0, u'tvshowid': 19, u'title': u'Rogue', 'ids': {'tvdb': u'265454'}, u'userrating': 0, u'year': 2013}, {'rating': 0, u'tvshowid': 20, u'title': u'Rubicon', 'ids': {'tvdb': u'158411'}, u'userrating': 0, u'year': 2010}, {'rating': 0, u'tvshowid': 21, u'title': u'So You Think You Can Dance', 'ids': {'tvdb': u'78956'}, u'userrating': 0, u'year': 2005}, {'rating': 0, u'tvshowid': 22, u'title': u'Spy (2011)', 'ids': {'tvdb': u'252115'}, u'userrating': 0, u'year': 2011}, {'rating': 0, u'tvshowid': 23, u'title': u'Strike Back', 'ids': {'tvdb': u'148581'}, u'userrating': 0, u'year': 2010}, {'rating': 0, u'tvshowid': 24, u'title': u'The Bridge', 'ids': {'tvdb': u'140151'}, u'userrating': 0, u'year': 2010}, {'rating': 0, u'tvshowid': 25, u'title': u'The Brink', 'ids': {'tvdb': u'278469'}, u'userrating': 0, u'year': 2015}, {'rating': 0, u'tvshowid': 26, u'title': u'The Finder', 'ids': {'tvdb': u'248651'}, u'userrating': 0, u'year': 2012}, {'rating': 0, u'tvshowid': 27, u'title': u'The Grinder', 'ids': {'tvdb': u'295682'}, u'userrating': 0, u'year': 2015}, {'rating': 0, u'tvshowid': 28, u'title': u'The Night Manager', 'ids': {'tvdb': u'290508'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 29, u'title': u'The Night Of', 'ids': {'tvdb': u'310516'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 30, u'title': u'The Walking Dead', 'ids': {'tvdb': u'153021'}, u'userrating': 0, u'year': 2010}, {'rating': 0, u'tvshowid': 31, u'title': u'The Wrong Mans', 'ids': {'tvdb': u'268943'}, u'userrating': 0, u'year': 2013}, {'rating': 0, u'tvshowid': 32, u'title': u'Trophy Wife', 'ids': {'tvdb': u'264408'}, u'userrating': 0, u'year': 2013}, {'rating': 0, u'tvshowid': 33, u'title': u'Undeclared', 'ids': {'tvdb': u'73557'}, u'userrating': 0, u'year': 2001}, {'rating': 0, u'tvshowid': 34, u'title': u'12 Monkeys', 'ids': {'tvdb': u'272644'}, u'userrating': 0, u'year': 2015}, {'rating': 0, u'tvshowid': 35, u'title': u'60 Minutes', 'ids': {'tvdb': u'73290'}, u'userrating': 0, u'year': 1968}, {'rating': 0, u'tvshowid': 36, u'title': u'Adam Ruins Everything', 'ids': {'tvdb': u'300774'}, u'userrating': 0, u'year': 2015}, {'rating': 0, u'tvshowid': 37, u'title': u"America's Test Kitchen", 'ids': {'tvdb': u'80297'}, u'userrating': 0, u'year': 2001}, {'rating': 0, u'tvshowid': 38, u'title': u'Ballers', 'ids': {'tvdb': u'281714'}, u'userrating': 0, u'year': 2015}, {'rating': 0, u'tvshowid': 39, u'title': u'Better Call Saul', 'ids': {'tvdb': u'273181'}, u'userrating': 0, u'year': 2015}, {'rating': 0, u'tvshowid': 40, u'title': u'Better Things', 'ids': {'tvdb': u'313270'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 41, u'title': u'Billions', 'ids': {'tvdb': u'279536'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 42, u'title': u'Blindspot', 'ids': {'tvdb': u'295647'}, u'userrating': 0, u'year': 2015}, {'rating': 0, u'tvshowid': 43, u'title': u'Blunt Talk', 'ids': {'tvdb': u'281181'}, u'userrating': 0, u'year': 2015}, {'rating': 0, u'tvshowid': 44, u'title': u'Bosch', 'ids': {'tvdb': u'277928'}, u'userrating': 0, u'year': 2015}, {'rating': 0, u'tvshowid': 45, u'title': u'Brooklyn Nine-Nine', 'ids': {'tvdb': u'269586'}, u'userrating': 0, u'year': 2013}, {'rating': 0, u'tvshowid': 46, u'title': u'Casual', 'ids': {'tvdb': u'299350'}, u'userrating': 0, u'year': 2015}, {'rating': 0, u'tvshowid': 47, u'title': u'Catastrophe (2015)', 'ids': {'tvdb': u'289771'}, u'userrating': 0, u'year': 2015}, {'rating': 0, u'tvshowid': 48, u'title': u'Chance', 'ids': {'tvdb': u'311196'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 49, u'title': u'Code Black', 'ids': {'tvdb': u'295780'}, u'userrating': 0, u'year': 2015}, {'rating': 0, u'tvshowid': 50, u'title': u'Colony', 'ids': {'tvdb': u'284210'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 51, u'title': u'Designated Survivor', 'ids': {'tvdb': u'311876'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 52, u'title': u'Elementary', 'ids': {'tvdb': u'255316'}, u'userrating': 0, u'year': 2012}, {'rating': 0, u'tvshowid': 53, u'title': u'Falling Water', 'ids': {'tvdb': u'311917'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 54, u'title': u'Fargo', 'ids': {'tvdb': u'269613'}, u'userrating': 0, u'year': 2014}, {'rating': 0, u'tvshowid': 55, u'title': u'Game of Thrones', 'ids': {'tvdb': u'121361'}, u'userrating': 0, u'year': 2011}, {'rating': 0, u'tvshowid': 56, u'title': u'Goliath', 'ids': {'tvdb': u'315321'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 57, u'title': u'Good Behavior', 'ids': {'tvdb': u'306753'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 59, u'title': u'Good Girls Revolt', 'ids': {'tvdb': u'315419'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 60, u'title': u'Halt and Catch Fire', 'ids': {'tvdb': u'271910'}, u'userrating': 0, u'year': 2014}, {'rating': 0, u'tvshowid': 61, u'title': u'Hand of God', 'ids': {'tvdb': u'284643'}, u'userrating': 0, u'year': 2014}, {'rating': 0, u'tvshowid': 62, u'title': u'Homeland', 'ids': {'tvdb': u'247897'}, u'userrating': 0, u'year': 2011}, {'rating': 0, u'tvshowid': 63, u'title': u'House of Cards', 'ids': {'tvdb': u'79861'}, u'userrating': 0, u'year': 1990}, {'rating': 0, u'tvshowid': 64, u'title': u'House of Lies', 'ids': {'tvdb': u'247909'}, u'userrating': 0, u'year': 2012}, {'rating': 0, u'tvshowid': 65, u'title': u'Humans', 'ids': {'tvdb': u'292124'}, u'userrating': 0, u'year': 2015}, {'rating': 0, u'tvshowid': 66, u'title': u'Incorporated', 'ids': {'tvdb': u'315177'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 67, u'title': u'iZombie', 'ids': {'tvdb': u'281470'}, u'userrating': 0, u'year': 2015}, {'rating': 0, u'tvshowid': 68, u'title': u'Lethal Weapon', 'ids': {'tvdb': u'311790'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 69, u'title': u'Lucifer', 'ids': {'tvdb': u'295685'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 70, u'title': u'MacGyver (2016)', 'ids': {'tvdb': u'311902'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 71, u'title': u'Mad Men', 'ids': {'tvdb': u'80337'}, u'userrating': 0, u'year': 2007}, {'rating': 0, u'tvshowid': 72, u'title': u'Madam Secretary', 'ids': {'tvdb': u'281623'}, u'userrating': 0, u'year': 2014}, {'rating': 0, u'tvshowid': 73, u'title': u'Major Crimes', 'ids': {'tvdb': u'257248'}, u'userrating': 0, u'year': 2012}, {'rating': 0, u'tvshowid': 74, u'title': u"Marvel's Agents of S.H.I.E.L.D.", 'ids': {'tvdb': u'263365'}, u'userrating': 0, u'year': 2013}, {'rating': 0, u'tvshowid': 75, u'title': u"Marvel's Daredevil", 'ids': {'tvdb': u'281662'}, u'userrating': 0, u'year': 2015}, {'rating': 0, u'tvshowid': 76, u'title': u"Marvel's Jessica Jones", 'ids': {'tvdb': u'284190'}, u'userrating': 0, u'year': 2015}, {'rating': 0, u'tvshowid': 77, u'title': u"Marvel's Luke Cage", 'ids': {'tvdb': u'304219'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 78, u'title': u'Modern Family', 'ids': {'tvdb': u'95011'}, u'userrating': 0, u'year': 2009}, {'rating': 0, u'tvshowid': 79, u'title': u'Motive', 'ids': {'tvdb': u'262569'}, u'userrating': 0, u'year': 2013}, {'rating': 0, u'tvshowid': 80, u'title': u'Narcos', 'ids': {'tvdb': u'282670'}, u'userrating': 0, u'year': 2015}, {'rating': 0, u'tvshowid': 81, u'title': u'No Tomorrow', 'ids': {'tvdb': u'311957'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 82, u'title': u'Notorious (2016)', 'ids': {'tvdb': u'311877'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 83, u'title': u'NOVA', 'ids': {'tvdb': u'76119'}, u'userrating': 0, u'year': 1974}, {'rating': 0, u'tvshowid': 84, u'title': u'Orphan Black', 'ids': {'tvdb': u'260315'}, u'userrating': 0, u'year': 2013}, {'rating': 0, u'tvshowid': 85, u'title': u'Penn & Teller: Fool Us', 'ids': {'tvdb': u'239851'}, u'userrating': 0, u'year': 2011}, {'rating': 0, u'tvshowid': 86, u'title': u'People of Earth', 'ids': {'tvdb': u'315068'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 87, u'title': u'Preacher', 'ids': {'tvdb': u'300472'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 88, u'title': u'Project Runway', 'ids': {'tvdb': u'74285'}, u'userrating': 0, u'year': 2004}, {'rating': 0, u'tvshowid': 89, u'title': u'Pure Genius', 'ids': {'tvdb': u'311947'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 90, u'title': u'Pushing Daisies', 'ids': {'tvdb': u'80351'}, u'userrating': 0, u'year': 2007}, {'rating': 0, u'tvshowid': 91, u'title': u'Quarry', 'ids': {'tvdb': u'269110'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 92, u'title': u'Queen of the South', 'ids': {'tvdb': u'306719'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 93, u'title': u'Red Oaks', 'ids': {'tvdb': u'284641'}, u'userrating': 0, u'year': 2014}, {'rating': 0, u'tvshowid': 94, u'title': u'Review', 'ids': {'tvdb': u'276148'}, u'userrating': 0, u'year': 2014}, {'rating': 0, u'tvshowid': 96, u'title': u'Scorpion', 'ids': {'tvdb': u'281630'}, u'userrating': 0, u'year': 2014}, {'rating': 0, u'tvshowid': 97, u'title': u'Secret City', 'ids': {'tvdb': u'310903'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 98, u'title': u'Secrets and Lies (2015)', 'ids': {'tvdb': u'279214'}, u'userrating': 0, u'year': 2015}, {'rating': 0, u'tvshowid': 99, u'title': u'Sense8', 'ids': {'tvdb': u'268156'}, u'userrating': 0, u'year': 2015}, {'rating': 0, u'tvshowid': 100, u'title': u'Shark Tank', 'ids': {'tvdb': u'100981'}, u'userrating': 0, u'year': 2009}, {'rating': 0, u'tvshowid': 101, u'title': u'Shooter', 'ids': {'tvdb': u'311900'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 102, u'title': u'Silicon Valley', 'ids': {'tvdb': u'277165'}, u'userrating': 0, u'year': 2014}, {'rating': 0, u'tvshowid': 103, u'title': u'South Park', 'ids': {'tvdb': u'75897'}, u'userrating': 0, u'year': 1997}, {'rating': 0, u'tvshowid': 104, u'title': u'Stan Against Evil', 'ids': {'tvdb': u'315153'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 105, u'title': u'Stitchers', 'ids': {'tvdb': u'292745'}, u'userrating': 0, u'year': 2015}, {'rating': 0, u'tvshowid': 106, u'title': u'Stranger Things', 'ids': {'tvdb': u'305288'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 107, u'title': u'Superstore', 'ids': {'tvdb': u'295648'}, u'userrating': 0, u'year': 2015}, {'rating': 0, u'tvshowid': 108, u'title': u'The Americans (2013)', 'ids': {'tvdb': u'261690'}, u'userrating': 0, u'year': 2013}, {'rating': 0, u'tvshowid': 109, u'title': u'The Blacklist', 'ids': {'tvdb': u'266189'}, u'userrating': 0, u'year': 2013}, {'rating': 0, u'tvshowid': 110, u'title': u'The Catch', 'ids': {'tvdb': u'295696'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 111, u'title': u'The Expanse', 'ids': {'tvdb': u'280619'}, u'userrating': 0, u'year': 2015}, {'rating': 0, u'tvshowid': 112, u'title': u'The Flash', 'ids': {'tvdb': u'279121'}, u'userrating': 0, u'year': 2014}, {'rating': 0, u'tvshowid': 113, u'title': u'The Good Place', 'ids': {'tvdb': u'311711'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 114, u'title': u'The Great Indoors', 'ids': {'tvdb': u'311948'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 115, u'title': u'The Honourable Woman', 'ids': {'tvdb': u'272318'}, u'userrating': 0, u'year': 2014}, {'rating': 0, u'tvshowid': 116, u'title': u'The Knick', 'ids': {'tvdb': u'279977'}, u'userrating': 0, u'year': 2014}, {'rating': 0, u'tvshowid': 117, u'title': u'The Last Man on Earth', 'ids': {'tvdb': u'281622'}, u'userrating': 0, u'year': 2015}, {'rating': 0, u'tvshowid': 118, u'title': u'The Librarians (2014)', 'ids': {'tvdb': u'281709'}, u'userrating': 0, u'year': 2014}, {'rating': 0, u'tvshowid': 119, u'title': u'The Magicians (2015)', 'ids': {'tvdb': u'299139'}, u'userrating': 0, u'year': 2015}, {'rating': 0, u'tvshowid': 120, u'title': u'The Man in the High Castle', 'ids': {'tvdb': u'295829'}, u'userrating': 0, u'year': 2015}, {'rating': 0, u'tvshowid': 121, u'title': u'The New Normal', 'ids': {'tvdb': u'258979'}, u'userrating': 0, u'year': 2012}, {'rating': 0, u'tvshowid': 122, u'title': u'The Shannara Chronicles', 'ids': {'tvdb': u'289096'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 124, u'title': u'The X-Files', 'ids': {'tvdb': u'77398'}, u'userrating': 0, u'year': 1993}, {'rating': 0, u'tvshowid': 125, u'title': u'This Is Us', 'ids': {'tvdb': u'311714'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 126, u'title': u'Timeless (2016)', 'ids': {'tvdb': u'311713'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 127, u'title': u'Travelers (2016)', 'ids': {'tvdb': u'314544'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 128, u'title': u'True Detective', 'ids': {'tvdb': u'270633'}, u'userrating': 0, u'year': 2014}, {'rating': 0, u'tvshowid': 129, u'title': u'Unbreakable Kimmy Schmidt', 'ids': {'tvdb': u'281593'}, u'userrating': 0, u'year': 2015}, {'rating': 0, u'tvshowid': 130, u'title': u'UnREAL', 'ids': {'tvdb': u'278264'}, u'userrating': 0, u'year': 2015}, {'rating': 0, u'tvshowid': 131, u'title': u'Veep', 'ids': {'tvdb': u'237831'}, u'userrating': 0, u'year': 2012}, {'rating': 0, u'tvshowid': 132, u'title': u'Vice Principals', 'ids': {'tvdb': u'308771'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 133, u'title': u'Westworld', 'ids': {'tvdb': u'296762'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 134, u'title': u'Wrecked (2016)', 'ids': {'tvdb': u'310555'}, u'userrating': 0, u'year': 2016}, {'rating': 0, u'tvshowid': 135, u'title': u"You're the Worst", 'ids': {'tvdb': u'281776'}, u'userrating': 0, u'year': 2014}, {'rating': 0, u'tvshowid': 136, u'title': u'Bones', 'ids': {'tvdb': u'75682'}, u'userrating': 0, u'year': 2005}]
09:00:08 T:547348279520   DEBUG: [script.trakt] syncEpisodes: [Episodes Sync] Getting episode data from Kodi
09:00:08 T:547348279520   DEBUG: RunQuery took 3 ms for 51 items query: select * from episode_view  WHERE episode_view.idShow = 1
...... <trimmed Show 2 to 135 for brevity> ......
09:00:19 T:547348279520   DEBUG: RunQuery took 1 ms for 1 items query: select * from episode_view  WHERE episode_view.idShow = 136
09:00:19 T:547348279520   DEBUG: [script.trakt] syncEpisodes: [Episodes Sync] Getting episode collection/watched/rated from Trakt.tv
09:00:19 T:547348279520   DEBUG: [script.trakt] requests.packages.urllib3.connectionpool: "GET /sync/collection/shows HTTP/1.1" 200 None
09:00:20 T:547348279520   DEBUG: [script.trakt] syncEpisodes: [Episodes Sync] Invalid Trakt.tv show list, possible error getting data from Trakt, aborting Trakt.tv collection/watched/rated update.
09:00:20 T:547348279520   DEBUG: [script.trakt] syncEpisodes: [Episodes Sync] Error getting Trakt.tv collected show list, aborting tv show sync.
09:00:20 T:547348279520   DEBUG: [script.trakt] sync: [Sync] Finished synchronization with Trakt.tv

EDIT - I spoke with Trakt support and they have provided me with the full JSON query being passed by Kodi for my account's watched-list. Everything works fine.

Here's the API call passed by curl, with my tokens removed. When I run this from the same Kodi box, it produces a list.

Code:
curl -i -v -H "trakt-api-version: 2" -H "Content-type: application/json" -H "trakt-api-key: <removed>" -H "Authorization: Bearer <removed>" --compressed https://api-v2launch.trakt.tv/sync/collection/shows

What could be the issue where Kodi claims that it's receiving a null-response, yet trakt.tv truly is responding with a list?

As a side note, I've tried several times:
* Deleting the queue.db and/or settings.xml
* Re-authorizing with trakt
* Eventually Uninstalling (and delete plugin / plugdata directories) w/Re-install


RE: Trakt.tv v3 - Razze - 2017-01-07

Seems like you know your way around things. Maybe you can try this, if not let me know:

Try replacing this:
https://github.com/trakt/script.trakt/blob/005930430c0d490dddd240cdd79dea8cc1d8dedf/syncMovies.py#L27-L28


except Exception as ex:
message = utilities.createError(ex)
logging.fatal(message)

Then create a logfile again, please let us know what it is if you solve it/need help. So it can get fixed for everybody.


RE: Trakt.tv v3 - LukeHansford - 2017-01-17

The official Trakt addon is not showing the pop up with the code to activate the addon after it installs.

I have just done a fresh install of kodi and this was working fine the other day.

please can someone test.


RE: Trakt.tv v3 - Razze - 2017-01-18

Already aware
https://github.com/xbmc/repo-scripts/commit/36ed3e4492a814568bd9bf6d61b4ff11724beb26
Should fix it as soon as it hits the official mirrors


RE: Trakt.tv v3 - LukeHansford - 2017-01-18

Thankyou for your fast responce.

I have spent the last few hours trying to see if it was my end as I couldnt see anyone else notice it yet.

what do we need to do to update to this? fresh install of kodi?


RE: Trakt.tv v3 - smicale - 2017-01-18

Is this issue also causing shows to not sync back to Trakt.tv and other devices? I can't seem to get my kodi installs to scrobble at all anymore.


RE: Trakt.tv v3 - Razze - 2017-01-18

Yes, probably.

You will just have to wait or force refresh your addon list to get the newest update.


RE: Trakt.tv v3 - smicale - 2017-01-18

Thanks @Razze! Do you know how long this could take to get fixed? Will you post something here once you see it working? Really appreciate your help. This was driving me crazy!