2021-03-07, 04:46
(2021-02-26, 05:43)cods69 Wrote: A snippet of debug - pretty clearly some issues in there.
Code:2021-02-26 14:22:09.689 T:12348 DEBUG <general>: [script.trakt] resources.lib.syncMovies: [Movies Sync] Kodi movie playcount is up to date.
2021-02-26 14:22:10.191 T:12348 DEBUG <general>: [script.trakt] resources.lib.syncMovies: [Movies Sync] 129 movie(s) progress will be updated in Kodi
2021-02-26 14:22:10.191 T:12348 ERROR <general>: Exception in thread
2021-02-26 14:22:10.191 T:12348 ERROR <general>: trakt-sync
2021-02-26 14:22:10.191 T:12348 ERROR <general>: :
2021-02-26 14:22:10.191 T:12348 ERROR <general>: Traceback (most recent call last):
2021-02-26 14:22:10.191 T:12348 ERROR <general>: File "C:\Program Files\Kodi\system\python\Lib\threading.py", line 932, in _bootstrap_inner
2021-02-26 14:22:10.192 T:12348 ERROR <general>:
2021-02-26 14:22:10.192 T:12348 ERROR <general>: self.run()
2021-02-26 14:22:10.192 T:12348 ERROR <general>:
2021-02-26 14:22:10.192 T:12348 ERROR <general>: File "C:\Users\xxx\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\service.py", line 379, in run
2021-02-26 14:22:10.193 T:12348 ERROR <general>:
2021-02-26 14:22:10.193 T:12348 ERROR <general>: sync.sync()
2021-02-26 14:22:10.193 T:12348 ERROR <general>:
2021-02-26 14:22:10.193 T:12348 ERROR <general>: File "C:\Users\xxx\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\sync.py", line 57, in sync
2021-02-26 14:22:10.193 T:12348 ERROR <general>:
2021-02-26 14:22:10.194 T:12348 ERROR <general>: syncMovies.SyncMovies(self, progress)
2021-02-26 14:22:10.194 T:12348 ERROR <general>:
2021-02-26 14:22:10.194 T:12348 ERROR <general>: File "C:\Users\xxx\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\syncMovies.py", line 47, in __init__
2021-02-26 14:22:10.194 T:12348 ERROR <general>:
2021-02-26 14:22:10.194 T:12348 ERROR <general>: self.__addMovieProgressToKodi(traktMoviesProgress, kodiMovies, 81, 91)
2021-02-26 14:22:10.194 T:12348 ERROR <general>:
2021-02-26 14:22:10.195 T:12348 ERROR <general>: File "C:\Users\xxx\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\syncMovies.py", line 332, in __addMovieProgressToKodi
2021-02-26 14:22:10.195 T:12348 ERROR <general>:
2021-02-26 14:22:10.195 T:12348 ERROR <general>: chunked_movies = utilities.chunks([{"jsonrpc": "2.0", "id": i, "method": "VideoLibrary.SetMovieDetails", "params": {"movieid": movie['movieid'], "resume": {
2021-02-26 14:22:10.195 T:12348 ERROR <general>:
2021-02-26 14:22:10.195 T:12348 ERROR <general>: File "C:\Users\xxx\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\syncMovies.py", line 332, in <listcomp>
2021-02-26 14:22:10.196 T:12348 ERROR <general>:
2021-02-26 14:22:10.196 T:12348 ERROR <general>: chunked_movies = utilities.chunks([{"jsonrpc": "2.0", "id": i, "method": "VideoLibrary.SetMovieDetails", "params": {"movieid": movie['movieid'], "resume": {
2021-02-26 14:22:10.196 T:12348 ERROR <general>:
2021-02-26 14:22:10.196 T:12348 ERROR <general>: NameError
2021-02-26 14:22:10.196 T:12348 ERROR <general>: :
2021-02-26 14:22:10.196 T:12348 ERROR <general>: free variable 'i' referenced before assignment in enclosing scope
2021-02-26 14:22:10.196 T:12348 ERROR <general>:
2021-02-26 14:22:10.197 T:12348 DEBUG <general>: .
I'm getting the exact same error. This has been the case with 3.3.3 all the way up to 3.3.5. Even with "Sync playback progress" disabled for both Movies and TV shows, it freezes at the point the dialog box / progress bar gets to "XXX movie(s) playcount will be updated in Kodi".
I have found though, that since it's only the Trakt addon that's frozen / crashed, you can still cleanly exit Kodi (since cancelling the Trakt sync does nothing) by using the "ALT+F4" keyboard combo, and select "Exit Kodi" from the shutdown menu. And before anyone asks, all my movies were scraped with the new python scraper, and the library re-exported as nfo's back to the relevant media folders, overwriting any existing nfo files, so they should all have valid TMDB-IDs.
Dan / Gib.