2015-08-03, 05:47
(2015-08-02, 19:55)Razze Wrote:(2015-08-01, 17:17)speeko Wrote: Just fresh installed a new machine with Win10 and isengard.
Managed to get trakt installed and authorised.
When syncing movies, it appears to hang on "X movies playcount will be updated in kodi" the number of movies in this case is 305.
Currently running 3.0.3 from github after the add-on from the official repo didn't work. Any ideas? Have tried letting it run for about 3'hours with no movement (kodi doesn't hang, the process just never finishes).
debug log exception:
Code:23:18:41 T:7720 ERROR: Exception in thread trakt-sync:
Traceback (most recent call last):
File "C:\Apps\Kodi\system\python\Lib\threading.py", line 810, in __bootstrap_inner
self.run()
File "C:\Users\kodi\AppData\Roaming\Kodi\addons\trakt-script.trakt-fea2323\service.py", line 328, in run
sync.sync()
File "C:\Users\kodi\AppData\Roaming\Kodi\addons\trakt-script.trakt-fea2323\sync.py", line 930, in sync
self.__syncMovies()
File "C:\Users\kodi\AppData\Roaming\Kodi\addons\trakt-script.trakt-fea2323\sync.py", line 842, in __syncMovies
self.__addMoviesToKodiWatched(traktMovies, kodiMovies)
File "C:\Users\kodi\AppData\Roaming\Kodi\addons\trakt-script.trakt-fea2323\sync.py", line 769, 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\kodi\AppData\Roaming\Kodi\addons\trakt-script.trakt-fea2323\utilities.py", line 447, in convertUtcToDateTime
local = utc.astimezone(tzlocal())
File "C:\Users\kodi\AppData\Roaming\Kodi\addons\script.module.dateutil\lib\dateutil\tz.py", line 113, in utcoffset
if self._isdst(dt):
File "C:\Users\kodi\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')
Seems like you have some dates movie with a last seen before 1980 or after 2038 in there, remove that and you should be fine. You might also want to check if that might be the case on trakt.
Awesome. How would I do that exactly? This is a brand new system so there are no "watches" statuses on any of my movies or shows.
So the problem must be with Trakt?
EDIT: Figured it out:
Go to Trakt.TV and login.
Select "history" from the drop down at the top right.
Navigate to the very last page.
In my case - i had about 30 movies watched in 1970 (don't know where they came from)
Click the pink ticked icon on each movie and select "remove - only this play"