Kodi Community Forum

Full Version: Trakt.tv v3
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(2015-03-19, 22:55)Razze Wrote: [ -> ]
(2015-03-19, 19:54)lowbee Wrote: [ -> ]
(2015-03-19, 10:15)Razze Wrote: [ -> ]Resume points for tv shows aren't working.
Only movies.

For tv shows Kodi needs to fix the problem with their api first. http://trac.kodi.tv/ticket/14524
Can't do anything on the addon end to change that.

Huummm, that's a 20 months old bug......I wonder if it will ever be fixed Sad

So do I have the correct understanding that script.trakt will automatically add the TVshows I watch to my collection/history on Trakt website ? If so, it is not doing it for me. What am I doing wrong ? Do I need to add these TV shows to my library ?

History should work fine if you scrobble the movies/shows.
Not sure about collection as I don't use the streaming, but s7eele might know.
fyi, discussion moved to appropriate forum
(2015-03-19, 22:19)surfing_spider Wrote: [ -> ]
(2015-03-14, 01:57)Razze Wrote: [ -> ]Please check your system time and are you using mysql or edited the sqlite library?
Do you have anything collected or watched with a year outside of 1970 to 2038?
What's your timezone?

I am also having similar problems related to time I think. I was hoping you could point me in the right direction.

I am running win7, kodi 14.2 rc & MySQL setup all clocks are synced to GMT. I have Trackt addon v3.0 installed. I also have tv series from 1969 (scooby doo, 5 year old is mad for it!).

Here is the relevant section of my logs...

Code:
19:53:46 T:14212  NOTICE: script.lazytv : 10.891000 :: 7.733000 :::  - updating due to database notification
19:53:46 T:14212  NOTICE: script.lazytv : 10.891000 :: 0.000000 :::  - notification!
19:53:46 T:14212  NOTICE: script.lazytv : 10.892000 :: 0.001000 :::  - retrieve_all_shows_started
19:53:46 T:14212  NOTICE: script.lazytv : 10.970000 :: 0.078000 :::  - retrieve_all_shows_End
19:53:46 T:14212  NOTICE: script.lazytv : 10.971000 :: 0.001000 :::  - get_eps_started
19:53:47 T:14212  NOTICE: script.lazytv : 0.722000 :: 0.722000 :::  - get_eps_Ended
19:53:54 T:3984   ERROR: Exception in thread trakt-sync:
                                            Traceback (most recent call last):
                                              File "C:\Program Files\Kodi\system\python\Lib\threading.py", line 810, in __bootstrap_inner
                                                self.run()
                                              File "C:\Users\Administrator\AppData\Roaming\Kodi\addons\script.trakt\service.py", line 281, in run
                                                sync.sync()
                                              File "C:\Users\Administrator\AppData\Roaming\Kodi\addons\script.trakt\sync.py", line 945, in sync
                                                self.__syncEpisodes()
                                              File "C:\Users\Administrator\AppData\Roaming\Kodi\addons\script.trakt\sync.py", line 514, in __syncEpisodes
                                                kodiShowsCollected, kodiShowsWatched = self.__kodiLoadShows()
                                              File "C:\Users\Administrator\AppData\Roaming\Kodi\addons\script.trakt\sync.py", line 86, in __kodiLoadShows
                                                show['seasons'] = utilities.kodiRpcToTraktMediaObjects(data)
                                              File "C:\Users\Administrator\AppData\Roaming\Kodi\addons\script.trakt\utilities.py", line 390, in kodiRpcToTraktMediaObjects
                                                episodeObject = kodiRpcToTraktMediaObject('episode', episode, mode)
                                              File "C:\Users\Administrator\AppData\Roaming\Kodi\addons\script.trakt\utilities.py", line 336, in kodiRpcToTraktMediaObject
                                                episode['watched_at'] = convertDateTimeToUTC(data['lastplayed'])
                                              File "C:\Users\Administrator\AppData\Roaming\Kodi\addons\script.trakt\utilities.py", line 420, in convertDateTimeToUTC
                                                utc = local.astimezone(tzutc())
                                              File "C:\Users\Administrator\AppData\Roaming\Kodi\addons\script.module.dateutil\lib\dateutil\tz.py", line 113, in utcoffset
                                                if self._isdst(dt):
                                              File "C:\Users\Administrator\AppData\Roaming\Kodi\addons\script.module.dateutil\lib\dateutil\tz.py", line 157, in _isdst
                                                return time.localtime(timestamp+time.timezone).tm_isdst
                                            ValueError: (22, 'Invalid argument')
19:58:10 T:14212  NOTICE: script.lazytv : 264.240000 :: 263.518000 :::  - notification!
19:59:31 T:14212  NOTICE: script.lazytv : 345.146000 :: 80.906000 :::  - notification!

At the moment if you run a manual sync it runs through all the movies fine, but gets stuck at... "Loading episode data from kodi, Parsing 3 of 44 episode data from kodi". After that I have to crash out of kodi

any help will be much appreciated.

FYI

It's about movies/episodes where you have set the 'lastplayed' or 'dateadded' fields in your mysql to something outside of 1970 to 2038

The soultion was that within my SQL database I found that about 10 episodes had entries that were 1969-12-31 00:00:00 in the lastPlayed field for some reason. I have moved the machine that SQL database was installed on since watching those episodes (and countless others that were fine) and reimported from separate exported NFO's. There must have been a short period where the data was somehow getting corrupted.

I just went to those episodes within kodi and skipped to the end of each of them again to reset the lastPlayed field.

Many thanks to Razze for his help
Hi, I'm having problems with my trakt.tv sync, I watch the TV shows and it doesn't update on trakt.tv. So here's my Kodi log, to see if you can help me.

http://pastebin.com/QrjrxpL2

Thanks.
(2015-03-21, 02:03)Morcegolas Wrote: [ -> ]Hi, I'm having problems with my trakt.tv sync, I watch the TV shows and it doesn't update on trakt.tv. So here's my Kodi log, to see if you can help me.

http://pastebin.com/QrjrxpL2

Thanks.

Looks like a trakt error rather than an add-on error. Can you try again? Or try doing a standard sync?
(2015-03-19, 19:36)Araldwenn Wrote: [ -> ]Hi,

I recently did a clean install of XBMC and i can't get Trakt to work anymore.
It seems not to update the watched status neither for movies nor TV shows, and when i lauch trakt manually, the pop-up windows stucks at "syncing movies 73%".

Here's what i've found in debug log :

Code:
18:00:58 T:67088   ERROR: Exception in thread trakt-sync:
                                            Traceback (most recent call last):
                                              File "C:\Program Files (x86)\Kodi\system\python\Lib\threading.py", line 810, in __bootstrap_inner
                                                self.run()
                                              File "C:\Users\Jerome\AppData\Roaming\Kodi\addons\script.trakt\service.py", line 281, in run
                                                sync.sync()
                                              File "C:\Users\Jerome\AppData\Roaming\Kodi\addons\script.trakt\sync.py", line 936, in sync
                                                self.__syncMovies()
                                              File "C:\Users\Jerome\AppData\Roaming\Kodi\addons\script.trakt\sync.py", line 846, in __syncMovies
                                                self.__addMoviesToKodiWatched(traktMovies, kodiMovies)
                                              File "C:\Users\Jerome\AppData\Roaming\Kodi\addons\script.trakt\sync.py", line 773, in __addMoviesToKodiWatched
                                                chunked_movies = utilities.chunks([{"jsonrpc": "2.0", "method": "VideoLibrary.SetMovieDetails", "params": {"movieid": kodiMoviesToUpdate[i]['movieid'], "playcount": kodiMoviesToUpdate[i]['plays'], "lastplayed": utilities.convertUtcToDateTime(kodiMoviesToUpdate[i]['last_watched_at'])}, "id": i} for i in range(len(kodiMoviesToUpdate))], chunksize)
                                              File "C:\Users\Jerome\AppData\Roaming\Kodi\addons\script.trakt\utilities.py", line 430, in convertUtcToDateTime
                                                local = utc.astimezone(tzlocal())
                                              File "C:\Users\Jerome\AppData\Roaming\Kodi\addons\script.module.dateutil\lib\dateutil\tz.py", line 113, in utcoffset
                                                if self._isdst(dt):
                                              File "C:\Users\Jerome\AppData\Roaming\Kodi\addons\script.module.dateutil\lib\dateutil\tz.py", line 157, in _isdst
                                                return time.localtime(timestamp+time.timezone).tm_isdst
                                            ValueError: (22, 'Invalid argument')


Anyone has an idea ?

Up please
@Piers I clear the log file, start logging and reboot the system. Then I execute the Track. Here is the log file:

http://pastebin.com/djGWgUyZ

Thanks.
(2015-03-21, 02:03)Morcegolas Wrote: [ -> ]Hi, I'm having problems with my trakt.tv sync, I watch the TV shows and it doesn't update on trakt.tv. So here's my Kodi log, to see if you can help me.

http://pastebin.com/QrjrxpL2

Thanks.

I am also having the same issues. I have tried s fresh install of Kodi with no success

If I go to the Trakt website and mark the shows as watched my devices will all update correctly but shows are not being marked automatically after watching.
(2015-03-21, 11:32)Araldwenn Wrote: [ -> ]
(2015-03-19, 19:36)Araldwenn Wrote: [ -> ]Hi,

I recently did a clean install of XBMC and i can't get Trakt to work anymore.
It seems not to update the watched status neither for movies nor TV shows, and when i lauch trakt manually, the pop-up windows stucks at "syncing movies 73%".

Here's what i've found in debug log :

Code:
18:00:58 T:67088   ERROR: Exception in thread trakt-sync:
                                            Traceback (most recent call last):
                                              File "C:\Program Files (x86)\Kodi\system\python\Lib\threading.py", line 810, in __bootstrap_inner
                                                self.run()
                                              File "C:\Users\Jerome\AppData\Roaming\Kodi\addons\script.trakt\service.py", line 281, in run
                                                sync.sync()
                                              File "C:\Users\Jerome\AppData\Roaming\Kodi\addons\script.trakt\sync.py", line 936, in sync
                                                self.__syncMovies()
                                              File "C:\Users\Jerome\AppData\Roaming\Kodi\addons\script.trakt\sync.py", line 846, in __syncMovies
                                                self.__addMoviesToKodiWatched(traktMovies, kodiMovies)
                                              File "C:\Users\Jerome\AppData\Roaming\Kodi\addons\script.trakt\sync.py", line 773, in __addMoviesToKodiWatched
                                                chunked_movies = utilities.chunks([{"jsonrpc": "2.0", "method": "VideoLibrary.SetMovieDetails", "params": {"movieid": kodiMoviesToUpdate[i]['movieid'], "playcount": kodiMoviesToUpdate[i]['plays'], "lastplayed": utilities.convertUtcToDateTime(kodiMoviesToUpdate[i]['last_watched_at'])}, "id": i} for i in range(len(kodiMoviesToUpdate))], chunksize)
                                              File "C:\Users\Jerome\AppData\Roaming\Kodi\addons\script.trakt\utilities.py", line 430, in convertUtcToDateTime
                                                local = utc.astimezone(tzlocal())
                                              File "C:\Users\Jerome\AppData\Roaming\Kodi\addons\script.module.dateutil\lib\dateutil\tz.py", line 113, in utcoffset
                                                if self._isdst(dt):
                                              File "C:\Users\Jerome\AppData\Roaming\Kodi\addons\script.module.dateutil\lib\dateutil\tz.py", line 157, in _isdst
                                                return time.localtime(timestamp+time.timezone).tm_isdst
                                            ValueError: (22, 'Invalid argument')


Anyone has an idea ?

Up please

This has been answered three post before yours, not sure how you missed that.


@Morcegolas

yout auth failed. probably due to your network adapter not beeing ready yet. You might want to activate wait on network if your using openELEC and/or the maximum startup delay in the addon.
If I understand, this has something to do with dateadded, etc..., correct ?
But I don't have an SQL Database, so how can I check if any movie or TVShow has this problem ?
(2015-03-21, 15:30)Araldwenn Wrote: [ -> ]If I understand, this has something to do with dateadded, etc..., correct ?
But I don't have an SQL Database, so how can I check if any movie or TVShow has this problem ?

Kodi has a sqLite database by default, so your best bet is to get an sqllite database browser like this: http://sqlitebrowser.org/
and open your %APPDATA%\Kodi\userdata\\DatabaseMyVideos90.db

Then you will have to look a little bit, if you can't find it let me know.
Ok, so I tried something...
I deleted my whole database and tried to first add my TVShows then launch trakt (each media has .nfo... Quicker when you reinstall...). It worked flawlessly. Then I added my movies, and then trakt failed again. So I can assume the problem comes from the movies.
I downloaded sqlite browser and checked for problems in dateAdded and lastPlayed (Browse data->Table=file), and all dateAdded are between 1998 and 2015, and lastplayed are between 2011 and 2015 (lastplayed is only for the TVshows I successfully scrobbled).

I don't understand what's the problem...
(2015-03-21, 14:57)Razze Wrote: [ -> ]@Morcegolas

yout auth failed. probably due to your network adapter not beeing ready yet. You might want to activate wait on network if your using openELEC and/or the maximum startup delay in the addon.

I'm not using openELEC, using kodi. But in trakt.tv option I put the maximum startup delay and now it's working.

Thanks.
(2015-03-21, 19:31)Morcegolas Wrote: [ -> ]
(2015-03-21, 14:57)Razze Wrote: [ -> ]@Morcegolas

yout auth failed. probably due to your network adapter not beeing ready yet. You might want to activate wait on network if your using openELEC and/or the maximum startup delay in the addon.

I'm not using openELEC, using kodi. But in trakt.tv option I put the maximum startup delay and now it's working.

Thanks.

Mmmh... Not openelec, but either Kodibuntu or Kodi+Ubuntu Tongue
(2015-03-21, 17:34)Araldwenn Wrote: [ -> ]Ok, so I tried something...
I deleted my whole database and tried to first add my TVShows then launch trakt (each media has .nfo... Quicker when you reinstall...). It worked flawlessly. Then I added my movies, and then trakt failed again. So I can assume the problem comes from the movies.
I downloaded sqlite browser and checked for problems in dateAdded and lastPlayed (Browse data->Table=file), and all dateAdded are between 1998 and 2015, and lastplayed are between 2011 and 2015 (lastplayed is only for the TVshows I successfully scrobbled).

I don't understand what's the problem...

Well seems like you've got the other case thats possible, one of the movies on trakt was set to be watched before 1970 or after 2038? can you check for that?
OMG... I finally found how to see it on trakt, and i actually have 214 movies that were set as watched on january 1st,1970.... How should i fix this ? I posted a ticket on trakt, but i don't know if they're going to do something... I think this is a bug when they updated to V2, cause I never had this problem before...

edit : finally, i decided to remove watched status on the site by hand for all of these movies. Hope this will help...

edit 2 : it worked... Now i just have to check my whole library and re add those 214 movies to watched...