trakt / script.trakt

Trakt.tv movie and TV show scrobbler for Kodi
GNU General Public License v2.0
315 stars 149 forks source link

Trakt Stuck at 'Synchronizing Movies from Kodi' - Must Force Close #512

Open SeaMonkey82 opened 3 years ago

SeaMonkey82 commented 3 years ago
2020-10-17 18:04:58.196 T:2496   ERROR: Exception in thread trakt-sync:
                                            Traceback (most recent call last):
                                              File "C:\Program Files\Kodi\system\python\Lib\threading.py", line 926, in _bootstrap_inner
                                                self.run()
                                              File "C:\Users\seamonkey\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\service.py", line 379, in run
                                                sync.sync()
                                              File "C:\Users\seamonkey\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\sync.py", line 57, in sync
                                                syncMovies.SyncMovies(self, progress)
                                              File "C:\Users\seamonkey\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\syncMovies.py", line 21, in __init__
                                                kodiMovies = self.__kodiLoadMovies()
                                              File "C:\Users\seamonkey\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\syncMovies.py", line 74, in __kodiLoadMovies
                                                kodi_movies = kodiUtilities.kodiRpcToTraktMediaObjects(data)
                                              File "C:\Users\seamonkey\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\kodiUtilities.py", line 204, in kodiRpcToTraktMediaObjects
                                                movieObject = kodiRpcToTraktMediaObject('movie', movie, mode)
                                              File "C:\Users\seamonkey\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\kodiUtilities.py", line 166, in kodiRpcToTraktMediaObject
                                                data['ids'] = data.pop('uniqueid')
                                            KeyError: 'uniqueid'

kodi.log

razzeee commented 3 years ago

Are you using nfo files?

On Sun, Oct 18, 2020, 00:06 SeaMonkey82 notifications@github.com wrote:

2020-10-17 18:04:58.196 T:2496 ERROR: Exception in thread trakt-sync: Traceback (most recent call last): File "C:\Program Files\Kodi\system\python\Lib\threading.py", line 926, in _bootstrap_inner self.run() File "C:\Users\seamonkey\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\service.py", line 379, in run sync.sync() File "C:\Users\seamonkey\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\sync.py", line 57, in sync syncMovies.SyncMovies(self, progress) File "C:\Users\seamonkey\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\syncMovies.py", line 21, in init kodiMovies = self.kodiLoadMovies() File "C:\Users\seamonkey\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\syncMovies.py", line 74, in kodiLoadMovies kodi_movies = kodiUtilities.kodiRpcToTraktMediaObjects(data) File "C:\Users\seamonkey\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\kodiUtilities.py", line 204, in kodiRpcToTraktMediaObjects movieObject = kodiRpcToTraktMediaObject('movie', movie, mode) File "C:\Users\seamonkey\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\kodiUtilities.py", line 166, in kodiRpcToTraktMediaObject data['ids'] = data.pop('uniqueid') KeyError: 'uniqueid'

kodi.log https://github.com/trakt/script.trakt/files/5396787/kodi.log

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/trakt/script.trakt/issues/512, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNLEZDW34OSBM2F42BX7RDSLIIN3ANCNFSM4SUUKS2A .

SeaMonkey82 commented 3 years ago

Yes. NFO files were generated by Kodi by exporting to separate files. uniqueid follows this format

    <uniqueid type="imdb" default="true">tt0115438</uniqueid>
razzeee commented 3 years ago

Are you sure that's the case for all the files? There might be old ones that miss it.

On Sun, Oct 18, 2020, 01:56 SeaMonkey82 notifications@github.com wrote:

Yes. NFO files were generated by Kodi by exporting to separate files. uniqueid follows this format

<uniqueid type="imdb" default="true">tt0115438</uniqueid>

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/trakt/script.trakt/issues/512#issuecomment-711095192, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNLEZF6V2KNPJB5C6KPM3LSLIVKTANCNFSM4SUUKS2A .

SeaMonkey82 commented 3 years ago
grep -riL --include "*.nfo" --include "*.NFO" "uniqueid" ./

gave me what I needed. I had some stale metadata from old media files that had been replaced by superior versions. The nfo files that matched the media currently in those folders was fine. Interestingly, these didn't seem to cause any problems for the Trakt plugin in Linux, but syncing Trakt using the same library via SMB from Windows would completely lock up Kodi.

edit Tried again after deleting these files and got the same error.

I then ran

grep -riL --include "*.nfo" --include "*.NFO" "<uniqueid type=\"imdb\" default=\"true\">" ./

and found that I have a lot of entries with type="unknown". Would those cause a problem?

razzeee commented 3 years ago

Not sure your log suggests' that it fails to find uniqueid at all. But we might already be past that error?

SeaMonkey82 commented 3 years ago

I still get the same error above after removing all files that were missing uniqueid. I figured the KeyError: 'uniqueid' indicated that the uniqueid was malformed in some way for some files. Any suggestions on how to troubleshoot?

razzeee commented 3 years ago

I guess you could blacklist some of your folders and see if you can figure out where it comes from, but might be quiet time intensive. Double/tripple check the logfile first.

fun4stuff commented 3 years ago

Has this been fixed yet?

SeaMonkey82 commented 3 years ago

For me, it's fixed in the sense that it no longer hangs at 'Synchronizing Movies from Kodi'. Instead, it now hangs at 'Synchronize TV Episodes'.

2021-03-12 00:26:58.579 T:4532    ERROR <general>: Exception in thread 
2021-03-12 00:26:58.579 T:4532    ERROR <general>: trakt-sync
2021-03-12 00:26:58.579 T:4532    ERROR <general>: :

2021-03-12 00:26:58.579 T:4532    ERROR <general>: Traceback (most recent call last):

2021-03-12 00:26:58.579 T:4532    ERROR <general>:   File "C:\Program Files\Kodi\system\python\Lib\threading.py", line 932, in _bootstrap_inner

2021-03-12 00:26:58.587 T:4532    ERROR <general>:     
2021-03-12 00:26:58.587 T:4532    ERROR <general>: self.run()
2021-03-12 00:26:58.587 T:4532    ERROR <general>: 

2021-03-12 00:26:58.587 T:4532    ERROR <general>:   File "C:\Users\seamonkey\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\service.py", line 379, in run

2021-03-12 00:26:58.593 T:4532    ERROR <general>:     
2021-03-12 00:26:58.593 T:4532    ERROR <general>: sync.sync()
2021-03-12 00:26:58.593 T:4532    ERROR <general>: 

2021-03-12 00:26:58.593 T:4532    ERROR <general>:   File "C:\Users\seamonkey\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\sync.py", line 67, in sync

2021-03-12 00:26:58.599 T:4532    ERROR <general>:     
2021-03-12 00:26:58.599 T:4532    ERROR <general>: syncEpisodes.SyncEpisodes(self, progress)
2021-03-12 00:26:58.599 T:4532    ERROR <general>: 

2021-03-12 00:26:58.599 T:4532    ERROR <general>:   File "C:\Users\seamonkey\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\syncEpisodes.py", line 21, in __init__

2021-03-12 00:26:58.604 T:4532    ERROR <general>:     
2021-03-12 00:26:58.604 T:4532    ERROR <general>: kodiShowsCollected, kodiShowsWatched = self.__kodiLoadShows()
2021-03-12 00:26:58.604 T:4532    ERROR <general>: 

2021-03-12 00:26:58.604 T:4532    ERROR <general>:   File "C:\Users\seamonkey\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\syncEpisodes.py", line 117, in __kodiLoadShows

2021-03-12 00:26:58.604 T:4532    ERROR <general>:     
2021-03-12 00:26:58.604 T:4532    ERROR <general>: show = {'title': show_col1['title'], 'ids': show_col1['ids'], 'year': show_col1['year'], 'rating': show_col1['rating'],
2021-03-12 00:26:58.604 T:4532    ERROR <general>: 

2021-03-12 00:26:58.604 T:4532    ERROR <general>: KeyError
2021-03-12 00:26:58.604 T:4532    ERROR <general>: : 
2021-03-12 00:26:58.604 T:4532    ERROR <general>: 'ids'
2021-03-12 00:26:58.604 T:4532    ERROR <general>: 
razzeee commented 3 years ago

please test https://github.com/trakt/script.trakt/pull/532

SeaMonkey82 commented 3 years ago
2021-03-14 00:11:37.236 T:95143   DEBUG <general>: HandleKey: return (0xf00d) pressed, action is Select
2021-03-14 00:11:37.236 T:95202   DEBUG <general>: Thread LanguageInvoker start, auto delete: false
2021-03-14 00:11:37.236 T:95202    INFO <general>: initializing python engine.
2021-03-14 00:11:37.236 T:95202   DEBUG <general>: CPythonInvoker(5, /home/seamonkey/.kodi/addons/script.trakt/defaultscript.py): start processing
2021-03-14 00:11:37.275 T:95202   DEBUG <general>: -->Python Interpreter Initialized<--
2021-03-14 00:11:37.275 T:95202   DEBUG <general>: 

2021-03-14 00:11:37.275 T:95202   DEBUG <general>: CPythonInvoker(5, /home/seamonkey/.kodi/addons/script.trakt/defaultscript.py): the source file to load is "/home/seamonkey/.kodi/addons/script.trakt/defaultscript.py"
2021-03-14 00:11:37.275 T:95202   DEBUG <general>: CPythonInvoker(5, /home/seamonkey/.kodi/addons/script.trakt/defaultscript.py): setting the Python path to /home/seamonkey/.kodi/addons/script.trakt:/home/seamonkey/.kodi/addons/script.module.arrow/lib:/home/seamonkey/.kodi/addons/script.module.certifi/lib:/home/seamonkey/.kodi/addons/script.module.chardet/lib:/home/seamonkey/.kodi/addons/script.module.dateutil/lib:/home/seamonkey/.kodi/addons/script.module.idna/lib:/home/seamonkey/.kodi/addons/script.module.requests/lib:/home/seamonkey/.kodi/addons/script.module.six/lib:/home/seamonkey/.kodi/addons/script.module.trakt/lib:/home/seamonkey/.kodi/addons/script.module.urllib3/lib:/usr/lib/python38.zip:/usr/lib/python3.8:/usr/lib/python3.8/lib-dynload:/home/seamonkey/.local/lib/python3.8/site-packages:/usr/local/lib/python3.8/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.8/dist-packages
2021-03-14 00:11:37.275 T:95202   DEBUG <general>: CPythonInvoker(5, /home/seamonkey/.kodi/addons/script.trakt/defaultscript.py): entering source directory /home/seamonkey/.kodi/addons/script.trakt
2021-03-14 00:11:37.275 T:95202   DEBUG <general>: CPythonInvoker(5, /home/seamonkey/.kodi/addons/script.trakt/defaultscript.py): instantiating addon using automatically obtained id of "script.trakt" dependent on version 3.0.0 of the xbmc.python api
2021-03-14 00:11:37.349 T:95184   DEBUG <general>: weather.gismeteo [v.0.5.2+matrix.1]: Request info
                                                   Method: GET
                                                   URL: https://services.gismeteo.net/inform-service/inf_chrome/cities/?mode=ip&count=1&nocache=1&lang=en
                                                   Headers: {'User-Agent': 'Kodi/19.0 (X11; Linux x86_64) Linux Mint/20.1 App_Bitness/64 Version/19.0-(19.0.0)-Git:20210219-f44fdfbf67', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'}
                                                   Response info
                                                   Status code: 200
                                                   Reason: OK
                                                   Elapsed: 0.9015 sec
                                                   URL: https://services.gismeteo.net/inform-service/inf_chrome/cities/?mode=ip&count=1&nocache=1&lang=en
                                                   Headers: {'Date': 'Sun, 14 Mar 2021 05:11:37 GMT', 'Content-Type': 'text/xml; charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Accept-Encoding, Accept-Encoding', 'X-Gismeteo-Timestamp': '1615698697', 'X-Gismeteo-TimestampStr': '2021/03/14 05:11:37', 'Access-Control-Expose-Headers': 'X-Gismeteo-TimestampStr, X-Gismeteo-Timestamp', 'X-DC': 'nord.ngx-services-nord02, nord.ngx-services-nord02', 'Server': 'gis', 'X-XSS-Protection': '1; mode=block', 'X-Content-Type-Options': 'nosniff', 'Content-Encoding': 'gzip'}
                                                   Content: <?xml version="1.0" encoding="utf-8"?><document><item id="7389" lat="25.790649" lng="279.869965" tzone="-300" n="Miami Beach" country_id="181" distance="0.00" country_name="United States" district_id="387" district_name="Florida"  kind="T"/></document>

2021-03-14 00:11:37.377 T:95202    INFO <general>: CPythonInvoker(5, /home/seamonkey/.kodi/addons/script.trakt/defaultscript.py): script successfully run
2021-03-14 00:11:37.377 T:95202   DEBUG <general>: onExecutionDone(5, /home/seamonkey/.kodi/addons/script.trakt/defaultscript.py)
2021-03-14 00:11:37.394 T:95202   DEBUG <general>: .
2021-03-14 00:11:37.427 T:95202 WARNING <general>: CPythonInvoker(5, /home/seamonkey/.kodi/addons/script.trakt/defaultscript.py): the python script "/home/seamonkey/.kodi/addons/script.trakt/defaultscript.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE
2021-03-14 00:11:37.427 T:95202    INFO <general>: Python interpreter stopped
2021-03-14 00:11:37.427 T:95202   DEBUG <general>: Thread LanguageInvoker 140050142332672 terminating
2021-03-14 00:11:37.447 T:95203   DEBUG <general>: DialogProgress::Open called 
2021-03-14 00:11:37.452 T:95143   DEBUG <general>: ------ Window Init (DialogConfirm.xml) ------
2021-03-14 00:11:37.452 T:95143    INFO <general>: Loading skin file: DialogConfirm.xml, load type: KEEP_IN_MEMORY
2021-03-14 00:11:38.351 T:95184   DEBUG <CAddonSettings[weather.gismeteo]>: trying to load setting definitions from old format...
2021-03-14 00:11:38.351 T:95184   DEBUG <CSettingsManager>: requested setting (label1) was not found.
2021-03-14 00:11:38.351 T:95184   DEBUG <CSettingsManager>: requested setting (label5) was not found.
2021-03-14 00:11:38.351 T:95184   DEBUG <CSettingsManager>: requested setting (label7) was not found.
2021-03-14 00:11:38.354 T:95184   DEBUG <CAddonSettings[weather.gismeteo]>: trying to load setting definitions from old format...
2021-03-14 00:11:38.355 T:95184   DEBUG <CSettingsManager>: requested setting (label1) was not found.
2021-03-14 00:11:38.355 T:95184   DEBUG <CSettingsManager>: requested setting (label3) was not found.
2021-03-14 00:11:38.355 T:95184   DEBUG <CSettingsManager>: requested setting (label7) was not found.
2021-03-14 00:11:38.355 T:95184   DEBUG <CAddonSettings[weather.gismeteo]>: trying to load setting definitions from old format...
2021-03-14 00:11:38.355 T:95184   DEBUG <CSettingsManager>: requested setting (label1) was not found.
2021-03-14 00:11:38.355 T:95184   DEBUG <CSettingsManager>: requested setting (label3) was not found.
2021-03-14 00:11:38.355 T:95184   DEBUG <CSettingsManager>: requested setting (label5) was not found.
2021-03-14 00:11:38.356 T:95184   DEBUG <CAddonSettings[weather.gismeteo]>: trying to load setting definitions from old format...
2021-03-14 00:11:38.356 T:95184   DEBUG <CSettingsManager>: requested setting (label1) was not found.
2021-03-14 00:11:38.356 T:95184   DEBUG <CSettingsManager>: requested setting (label3) was not found.
2021-03-14 00:11:38.356 T:95184   DEBUG <CSettingsManager>: requested setting (label5) was not found.
2021-03-14 00:11:38.356 T:95184   DEBUG <CSettingsManager>: requested setting (label7) was not found.
2021-03-14 00:11:38.356 T:95184    INFO <general>: CPythonInvoker(4, /home/seamonkey/.kodi/addons/weather.gismeteo/default.py): script successfully run
2021-03-14 00:11:38.356 T:95184   DEBUG <general>: onExecutionDone(4, /home/seamonkey/.kodi/addons/weather.gismeteo/default.py)
2021-03-14 00:11:38.376 T:95184   DEBUG <general>: .
2021-03-14 00:11:38.414 T:95184    INFO <general>: Python interpreter stopped
2021-03-14 00:11:38.414 T:95184   DEBUG <general>: Thread LanguageInvoker 140050360395520 terminating
2021-03-14 00:11:38.442 T:95183   DEBUG <general>: POParser: loaded 131 weather tokens
2021-03-14 00:11:38.513 T:95177   DEBUG <general>: Version Check: Version installed {'major': 19, 'minor': 0, 'revision': '20210219-f44fdfbf67', 'tag': 'stable'}
2021-03-14 00:11:38.513 T:95177   DEBUG <general>: Version Check: Version available  {'major': '19', 'minor': '0', 'tag': 'stable', 'tagversion': '', 'revision': '20210218-f44fdfbf67', 'extrainfo': 'final', 'addon_support': 'yes'}
2021-03-14 00:11:38.513 T:95177   DEBUG <general>: Version Check: There is no newer stable available
2021-03-14 00:11:38.513 T:95177    INFO <general>: CPythonInvoker(3, /home/seamonkey/.kodi/addons/service.xbmc.versioncheck/resources/lib/runner.py): script successfully run
2021-03-14 00:11:38.513 T:95177   DEBUG <general>: onExecutionDone(3, /home/seamonkey/.kodi/addons/service.xbmc.versioncheck/resources/lib/runner.py)
2021-03-14 00:11:38.529 T:95177   DEBUG <general>: .
2021-03-14 00:11:38.576 T:95177    INFO <general>: Python interpreter stopped
2021-03-14 00:11:38.576 T:95177   DEBUG <general>: Thread LanguageInvoker 140051023390464 terminating
2021-03-14 00:11:53.063 T:95203   DEBUG <general>: DialogProgress::Open called (already running)!
2021-03-14 00:11:53.070 T:95143   DEBUG <general>: ------ Window Init (DialogConfirm.xml) ------
2021-03-14 00:11:53.096 T:95203   ERROR <general>: Exception in thread 
2021-03-14 00:11:53.096 T:95203   ERROR <general>: trakt-sync
2021-03-14 00:11:53.096 T:95203   ERROR <general>: :

2021-03-14 00:11:53.096 T:95203   ERROR <general>: Traceback (most recent call last):

2021-03-14 00:11:53.096 T:95203   ERROR <general>:   File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner

2021-03-14 00:11:53.097 T:95203   ERROR <general>:     
2021-03-14 00:11:53.097 T:95203   ERROR <general>: self.run()
2021-03-14 00:11:53.097 T:95203   ERROR <general>: 

2021-03-14 00:11:53.097 T:95203   ERROR <general>:   File "/home/seamonkey/.kodi/addons/script.trakt/resources/lib/service.py", line 371, in run

2021-03-14 00:11:53.097 T:95203   ERROR <general>:     
2021-03-14 00:11:53.097 T:95203   ERROR <general>: sync.sync()
2021-03-14 00:11:53.097 T:95203   ERROR <general>: 

2021-03-14 00:11:53.097 T:95203   ERROR <general>:   File "/home/seamonkey/.kodi/addons/script.trakt/resources/lib/sync.py", line 67, in sync

2021-03-14 00:11:53.097 T:95203   ERROR <general>:     
2021-03-14 00:11:53.097 T:95203   ERROR <general>: syncEpisodes.SyncEpisodes(self, progress)
2021-03-14 00:11:53.097 T:95203   ERROR <general>: 

2021-03-14 00:11:53.097 T:95203   ERROR <general>:   File "/home/seamonkey/.kodi/addons/script.trakt/resources/lib/syncEpisodes.py", line 21, in __init__

2021-03-14 00:11:53.097 T:95203   ERROR <general>:     
2021-03-14 00:11:53.097 T:95203   ERROR <general>: kodiShowsCollected, kodiShowsWatched = self.__kodiLoadShows()
2021-03-14 00:11:53.097 T:95203   ERROR <general>: 

2021-03-14 00:11:53.097 T:95203   ERROR <general>:   File "/home/seamonkey/.kodi/addons/script.trakt/resources/lib/syncEpisodes.py", line 117, in __kodiLoadShows

2021-03-14 00:11:53.097 T:95203   ERROR <general>:     
2021-03-14 00:11:53.097 T:95203   ERROR <general>: show = {'title': show_col1['title'], 'ids': show_col1['ids'], 'year': show_col1['year'], 'rating': show_col1['rating'],
2021-03-14 00:11:53.097 T:95203   ERROR <general>: 

2021-03-14 00:11:53.097 T:95203   ERROR <general>: KeyError
2021-03-14 00:11:53.097 T:95203   ERROR <general>: : 
2021-03-14 00:11:53.097 T:95203   ERROR <general>: 'ids'
2021-03-14 00:11:53.097 T:95203   ERROR <general>: 

2021-03-14 00:11:53.097 T:95203   DEBUG <general>: .
2021-03-14 00:12:04.296 T:95143   DEBUG <general>: Skipped 1 duplicate messages..
2021-03-14 00:12:04.296 T:95143   DEBUG <general>: CheckIdle - Closing session to http://ia.media-imdb.com (easy=0x7f60556afb20, multi=(nil))
2021-03-14 00:12:06.320 T:95167   DEBUG <general>: Thread JobWorker 140051790694144 terminating (autodelete)
2021-03-14 00:12:06.320 T:95164   DEBUG <general>: Thread JobWorker 140051818063616 terminating (autodelete)
2021-03-14 00:12:06.351 T:95166   DEBUG <general>: Thread JobWorker 140051799086848 terminating (autodelete)
2021-03-14 00:12:08.442 T:95183   DEBUG <general>: Thread JobWorker 140050494912256 terminating (autodelete)
razzeee commented 3 years ago

Is that with the branch/latest?

SeaMonkey82 commented 3 years ago

2a2bc614e35f7fcceb598dec2875b78188c91512

hogenf commented 3 years ago

I have tested with v3.4.1. Still have the problem where it hangs at at 'Synchronize TV Episodes' Parsing 16 of 93 episode data from kodi.

Full log https://paste.kodi.tv/ovojamohiw.kodi

Kodi (19.0 (19.0.0) Git:20210218-f44fdfbf67). Platform: Windows NT x86 64-bit 2021-03-20 13:02:28.640 T:4136 INFO : CAddonMgr::ADDON::CAddonMgr::FindAddons: script.module.trakt v4.2.0+matrix.1 installed 2021-03-20 13:02:28.640 T:4136 INFO : CAddonMgr::ADDON::CAddonMgr::FindAddons: script.trakt v3.4.1 installed

2021-03-20 13:05:57.666 T:15460   DEBUG <general>: [script.trakt] resources.lib.syncEpisodes: [Episodes Sync] Getting show data from Kodi
2021-03-20 13:05:57.666 T:15460   DEBUG <general>: dbiplus::MysqlDatabase::connect replacing configured host 192.168.1.188 with resolved host 192.168.1.188
2021-03-20 13:05:57.848 T:15460   DEBUG <general>: Skipped 1 duplicate messages..
2021-03-20 13:05:57.848 T:15460   DEBUG <general>: [script.trakt] resources.lib.kodiUtilities: kodiRpcToTraktMediaObject(): No uniqueid found
2021-03-20 13:05:57.850 T:15460   DEBUG <general>: Skipped 2 duplicate messages..
2021-03-20 13:05:57.850 T:15460   DEBUG <general>: [script.trakt] resources.lib.syncEpisodes: [Episode Sync] Getting shows from kodi finished [{'title': '3rd Rock from the Sun', 'tvshowid': 355, 'userrating': 0, 'year': 1996, 'ids': {'imdb': 'tt0115082', 'tvdb': '72389'}, 'rating': 0}, {'title': 'American Dad!', 'tvshowid': 356, 'userrating': 0, 'year': 2005, 'ids': {'imdb': 'tt0397306', 'tvdb': '73141'}, 'rating': 0}, {'title': "Andrew Marr's History of the World", 'tvshowid': 357, 'userrating': 0, 'year': 2012, 'ids': {'imdb': 'tt2441214', 'tvdb': '262586'}, 'rating': 0}, {'title': 'Bankers', 'tvshowid': 358, 'userrating': 0, 'year': 2013, 'ids': {'imdb': 'tt3331932', 'tvdb': '269553'}, 'rating': 0}, {'title': 'Better Call Saul', 'tvshowid': 359, 'userrating': 0, 'year': 2015, 'ids': {'imdb': 'tt3032476', 'tvdb': '273181'}, 'rating': 0}, {'title': "Bob's Burgers", 'tvshowid': 360, 'userrating': 0, 'year': 2011, 'ids': {'imdb': 'tt1561755', 'tvdb': '194031'}, 'rating': 0}, {'title': 'BoJack Horseman', 'tvshowid': 361, 'userrating': 0, 'year': 2014, 'ids': {'imdb': 'tt3398228', 'tvdb': '282254'}, 'rating': 0}, {'title': 'Boston Legal', 'tvshowid': 362, 'userrating': 0, 'year': 2004, 'ids': {'imdb': 'tt0402711', 'tvdb': '74058'}, 'rating': 0}, {'title': 'Canada: A Peoples History', 'tvshowid': 363, 'userrating': 0, 'year': 0, 'ids': {'tvdb': '391316'}, 'rating': 0}, {'title': 'Chernobyl', 'tvshowid': 364, 'userrating': 0, 'year': 2019, 'ids': {'imdb': 'tt7366338', 'tvdb': '360893'}, 'rating': 0}, {'title': 'Chivalry and Betrayal: The Hundred Years War', 'tvshowid': 365, 'userrating': 0, 'year': 2013, 'ids': {'imdb': 'tt2629564', 'tvdb': '266865'}, 'rating': 0}, {'title': 'Cosmos (2014)', 'tvshowid': 366, 'userrating': 0, 'year': 2014, 'ids': {'imdb': 'tt2395695', 'tvdb': '260586'}, 'rating': 0}, {'title': 'Cougar Town', 'tvshowid': 367, 'userrating': 0, 'year': 2009, 'ids': {'imdb': 'tt1441109', 'tvdb': '94991'}, 'rating': 0}, {'title': 'Coupling', 'tvshowid': 368, 'userrating': 0, 'year': 2000, 'ids': {'imdb': 'tt0237123', 'tvdb': '78131'}, 'rating': 0}, {'title': 'Curiosity', 'tvshowid': 369, 'userrating': 0, 'year': 2011, 'ids': {'imdb': 'tt1564623', 'tvdb': '250572'}, 'rating': 0}, {'title': '', 'tvshowid': 370, 'userrating': 0, 'year': 0, 'rating': 0}, {'title': 'DuckTales', 'tvshowid': 371, 'userrating': 0, 'year': 1987, 'ids': {'imdb': 'tt0092345', 'tvdb': '75931'}, 'rating': 0}, {'title': 'Fake or Fortune?', 'tvshowid': 372, 'userrating': 0, 'year': 2011, 'ids': {'imdb': 'tt2033616', 'tvdb': '249785'}, 'rating': 0}, {'title': 'Family Guy', 'tvshowid': 373, 'userrating': 0, 'year': 1995, 'ids': {'imdb': 'tt0182576', 'tvdb': '75978'}, 'rating': 0}, {'title': 'Firefly', 'tvshowid': 374, 'userrating': 0, 'year': 2002, 'ids': {'imdb': 'tt0303461', 'tvdb': '78874'}, 'rating': 0}, {'title': 'Frasier', 'tvshowid': 375, 'userrating': 0, 'year': 1993, 'ids': {'imdb': 'tt0106004', 'tvdb': '77811'}, 'rating': 0}, {'title': 'Futurama', 'tvshowid': 376, 'userrating': 0, 'year': 1999, 'ids': {'imdb': 'tt0149460', 'tvdb': '73871'}, 'rating': 0}, {'title': 'Game of Thrones', 'tvshowid': 377, 'userrating': 0, 'year': 2010, 'ids': {'imdb': 'tt0944947', 'tvdb': '121361'}, 'rating': 0}, {'title': "George Clarke's Amazing Spaces", 'tvshowid': 378, 'userrating': 0, 'year': 2012, 'ids': {'imdb': 'tt3321546', 'tvdb': '263546'}, 'rating': 0}, {'title': "George Clarke's National Trust Unlocked", 'tvshowid': 379, 'userrating': 0, 'year': 2020, 'ids': {'tvdb': '387047'}, 'rating': 0}, {'title': "George Clarke's Old House, New Home", 'tvshowid': 380, 'userrating': 0, 'year': 2016, 'ids': {'imdb': 'tt8839998', 'tvdb': '312670'}, 'rating': 0}, {'title': 'Grand Designs', 'tvshowid': 381, 'userrating': 0, 'year': 1999, 'ids': {'imdb': 'tt0421099', 'tvdb': '79264'}, 'rating': 0}, {'title': 'Grand Designs Abroad', 'tvshowid': 382, 'userrating': 0, 'year': 2004, 'ids': {'imdb': 'tt4443986', 'tvdb': '82408'}, 'rating': 0}, {'title': 'Grand Designs Australia', 'tvshowid': 383, 'userrating': 0, 'year': 2010, 'ids': {'imdb': 'tt1677691', 'tvdb': '196901'}, 'rating': 0}, {'title': 'Grand Designs Indoors', 'tvshowid': 384, 'userrating': 0, 'year': 2001, 'ids': {'imdb': 'tt7814768', 'tvdb': '82412'}, 'rating': 0}, {'title': 'Grand Designs Sweden', 'tvshowid': 385, 'userrating': 0, 'year': 2020, 'ids': {'tvdb': '391007'}, 'rating': 0}, {'title': 'Grand Designs Trade Secrets', 'tvshowid': 386, 'userrating': 0, 'year': 2007, 'ids': {'imdb': 'tt0996030', 'tvdb': '85324'}, 'rating': 0}, {'title': 'Grand Designs: House of the Year', 'tvshowid': 387, 'userrating': 0, 'year': 2015, 'ids': {'imdb': 'tt5254568', 'tvdb': '302782'}, 'rating': 0}, {'title': 'Grand Designs New Zealand', 'tvshowid': 388, 'userrating': 0, 'year': 2015, 'ids': {'imdb': 'tt6267644', 'tvdb': '284931'}, 'rating': 0}, {'title': 'Grand Designs: The Street', 'tvshowid': 389, 'userrating': 0, 'year': 2019, 'ids': {'tvdb': '361621'}, 'rating': 0}, {'title': 'Great Thinkers: In Their Own Words', 'tvshowid': 390, 'userrating': 0, 'year': 2011, 'ids': {'tvdb': '250664'}, 'rating': 0}, {'title': 'Heroes Reborn', 'tvshowid': 391, 'userrating': 0, 'year': 2015, 'ids': {'imdb': 'tt3556944', 'tvdb': '279201'}, 'rating': 0}, {'title': 'Horizon', 'tvshowid': 392, 'userrating': 0, 'year': 1964, 'ids': {'imdb': 'tt0318224', 'tvdb': '74379'}, 'rating': 0}, {'title': 'How I Met Your Mother', 'tvshowid': 393, 'userrating': 0, 'year': 2005, 'ids': {'imdb': 'tt0460649', 'tvdb': '75760'}, 'rating': 0}, {'title': 'How the Universe Works', 'tvshowid': 394, 'userrating': 0, 'year': 2010, 'ids': {'imdb': 'tt1832668', 'tvdb': '159651'}, 'rating': 0}, {'title': "James May's Things You Need to Know", 'tvshowid': 395, 'userrating': 0, 'year': 2011, 'ids': {'imdb': 'tt2079863', 'tvdb': '249663'}, 'rating': 0}, {'title': "Jamie's 30 Minute Meals", 'tvshowid': 396, 'userrating': 0, 'year': 2010, 'ids': {'imdb': 'tt1724448', 'tvdb': '197031'}, 'rating': 0}, {'title': 'Kevin McCloud’s Rough Guide to the Future', 'tvshowid': 397, 'userrating': 0, 'year': 2020, 'ids': {'imdb': 'tt11940772', 'tvdb': '376873'}, 'rating': 0}, {'title': 'Life', 'tvshowid': 398, 'userrating': 0, 'year': 2009, 'ids': {'imdb': 'tt1533395', 'tvdb': '118421'}, 'rating': 0}, {'title': 'MasterChef Australia', 'tvshowid': 399, 'userrating': 10, 'year': 2009, 'ids': {'imdb': 'tt1433870', 'tvdb': '92091'}, 'rating': 10}, {'title': 'MasterChef The Professionals Australia', 'tvshowid': 400, 'userrating': 0, 'year': 2013, 'ids': {'imdb': 'tt2766258', 'tvdb': '265252'}, 'rating': 0}, {'title': 'New Girl', 'tvshowid': 401, 'userrating': 0, 'year': 2011, 'ids': {'imdb': 'tt1826940', 'tvdb': '248682'}, 'rating': 0}, {'title': "Nigel Slater's Simple Suppers", 'tvshowid': 402, 'userrating': 0, 'year': 2009, 'ids': {'tvdb': '113201'}, 'rating': 0}, {'title': 'Nigella Kitchen', 'tvshowid': 403, 'userrating': 0, 'year': 2010, 'ids': {'imdb': 'tt1751231', 'tvdb': '194201'}, 'rating': 0}, {'title': 'NOVA', 'tvshowid': 404, 'userrating': 0, 'year': 1974, 'ids': {'imdb': 'tt0206501', 'tvdb': '76119'}, 'rating': 0}, {'title': 'NOVA scienceNOW', 'tvshowid': 405, 'userrating': 0, 'year': 2005, 'ids': {'imdb': 'tt0449461', 'tvdb': '81526'}, 'rating': 0}, {'title': 'Parks and Recreation', 'tvshowid': 406, 'userrating': 0, 'year': 2009, 'ids': {'imdb': 'tt1266020', 'tvdb': '84912'}, 'rating': 0}, {'title': 'Restoration Australia', 'tvshowid': 407, 'userrating': 0, 'year': 2015, 'ids': {'imdb': 'tt9591912', 'tvdb': '290502'}, 'rating': 0}, {'title': 'Restoration Home', 'tvshowid': 408, 'userrating': 0, 'year': 2011, 'ids': {'imdb': 'tt1991691', 'tvdb': '249980'}, 'rating': 0}, {'title': 'Rick and Morty', 'tvshowid': 409, 'userrating': 0, 'year': 2008, 'ids': {'imdb': 'tt2861424', 'tvdb': '275274'}, 'rating': 0}, {'title': 'Seinfeld', 'tvshowid': 410, 'userrating': 0, 'year': 1989, 'ids': {'imdb': 'tt0098904', 'tvdb': '79169'}, 'rating': 0}, {'title': 'Sherlock', 'tvshowid': 411, 'userrating': 0, 'year': 2010, 'ids': {'imdb': 'tt1475582', 'tvdb': '176941'}, 'rating': 0}, {'title': '', 'tvshowid': 412, 'userrating': 0, 'year': 0, 'rating': 0}, {'title': 'The Sunny Side', 'tvshowid': 413, 'userrating': 0, 'year': 2010, 'ids': {'imdb': 'tt1593584', 'tvdb': '138531'}, 'rating': 0}, {'title': 'South Park', 'tvshowid': 414, 'userrating': 0, 'year': 1992, 'ids': {'imdb': 'tt0121955', 'tvdb': '75897'}, 'rating': 0}, {'title': 'Star Trek', 'tvshowid': 415, 'userrating': 0, 'year': 1966, 'ids': {'imdb': 'tt0060028', 'tvdb': '77526'}, 'rating': 0}, {'title': 'Star Trek: Deep Space Nine', 'tvshowid': 416, 'userrating': 0, 'year': 1993, 'ids': {'imdb': 'tt0106145', 'tvdb': '72073'}, 'rating': 0}, {'title': 'Star Trek: Lower Decks', 'tvshowid': 417, 'userrating': 0, 'year': 2020, 'ids': {'imdb': 'tt9184820', 'tmdb': '85948', 'trakt': '138641', 'tvdb': '367138'}, 'rating': 0}, {'title': 'Star Trek: Picard', 'tvshowid': 418, 'userrating': 0, 'year': 2020, 'ids': {'imdb': 'tt8806524', 'tvdb': '364093'}, 'rating': 0}, {'title': 'Star Trek: The Next Generation', 'tvshowid': 419, 'userrating': 0, 'year': 1987, 'ids': {'imdb': 'tt0092455', 'tvdb': '71470'}, 'rating': 0}, {'title': 'Star Trek: Enterprise', 'tvshowid': 420, 'userrating': 0, 'year': 2001, 'ids': {'imdb': 'tt0244365', 'tvdb': '73893'}, 'rating': 0}, {'title': 'Star Trek: Voyager', 'tvshowid': 421, 'userrating': 0, 'year': 1995, 'ids': {'imdb': 'tt0112178', 'tvdb': '74550'}, 'rating': 0}, {'title': "Stephen Hawking's Grand Design", 'tvshowid': 422, 'userrating': 0, 'year': 2012, 'ids': {'imdb': 'tt2203380', 'tvdb': '259980'}, 'rating': 0}, {'title': 'Supernatural', 'tvshowid': 423, 'userrating': 0, 'year': 2005, 'ids': {'imdb': 'tt0460681', 'tvdb': '78901'}, 'rating': 0}, {'title': 'The Big Bang Theory', 'tvshowid': 424, 'userrating': 0, 'year': 2007, 'ids': {'imdb': 'tt0898266', 'tvdb': '80379'}, 'rating': 0}, {'title': 'The Boys', 'tvshowid': 425, 'userrating': 0, 'year': 2019, 'ids': {'imdb': 'tt1190634', 'tvdb': '355567'}, 'rating': 0}, {'title': 'The Colbert Report', 'tvshowid': 426, 'userrating': 0, 'year': 2005, 'ids': {'imdb': 'tt0458254', 'tvdb': '79274'}, 'rating': 0}, {'title': 'The Crusades (2019)', 'tvshowid': 427, 'userrating': 0, 'year': 0, 'ids': {'tvdb': '368900'}, 'rating': 0}, {'title': 'The Daily Show', 'tvshowid': 428, 'userrating': 0, 'year': 1996, 'ids': {'imdb': 'tt0115147', 'tvdb': '71256'}, 'rating': 0}, {'title': 'The Fabulous Baker Brothers', 'tvshowid': 429, 'userrating': 0, 'year': 2012, 'ids': {'imdb': 'tt2158023', 'tvdb': '254991'}, 'rating': 0}, {'title': "The Hitchhiker's Guide to the Galaxy", 'tvshowid': 430, 'userrating': 0, 'year': 1980, 'ids': {'imdb': 'tt0081874', 'tvdb': '78142'}, 'rating': 0}, {'title': 'The IT Crowd', 'tvshowid': 431, 'userrating': 0, 'year': 2006, 'ids': {'imdb': 'tt0487831', 'tvdb': '79216'}, 'rating': 0}, {'title': 'The Mandalorian', 'tvshowid': 432, 'userrating': 0, 'year': 2019, 'ids': {'imdb': 'tt8111088', 'tvdb': '361753'}, 'rating': 0}, {'title': 'The Restoration Man', 'tvshowid': 433, 'userrating': 0, 'year': 2010, 'ids': {'imdb': 'tt1632329', 'tvdb': '151501'}, 'rating': 0}, {'title': '', 'tvshowid': 434, 'userrating': 0, 'year': 0, 'rating': 0}, {'title': 'The Story of Ireland', 'tvshowid': 435, 'userrating': 0, 'year': 2011, 'ids': {'imdb': 'tt4027192', 'tvdb': '234991'}, 'rating': 0}, {'title': 'The Story of Science: Power, Proof and Passion', 'tvshowid': 436, 'userrating': 0, 'year': 2010, 'ids': {'imdb': 'tt1647292', 'tvdb': '159901'}, 'rating': 0}, {'title': 'The Ultimate Guide to the Presidents', 'tvshowid': 437, 'userrating': 0, 'year': 2013, 'ids': {'imdb': 'tt2634238', 'tvdb': '265906'}, 'rating': 0}, {'title': 'The Universe', 'tvshowid': 438, 'userrating': 0, 'year': 2005, 'ids': {'imdb': 'tt1051155', 'tvdb': '80198'}, 'rating': 0}, {'title': 'The Story of China', 'tvshowid': 439, 'userrating': 0, 'year': 2016, 'ids': {'imdb': 'tt5361834', 'tvdb': '305735'}, 'rating': 0}, {'title': 'True Blood', 'tvshowid': 440, 'userrating': 0, 'year': 2008, 'ids': {'imdb': 'tt0844441', 'tvdb': '82283'}, 'rating': 0}, {'title': 'True Detective', 'tvshowid': 441, 'userrating': 0, 'year': 2014, 'ids': {'imdb': 'tt2356777', 'tvdb': '270633'}, 'rating': 0}, {'title': 'Ugly House to Lovely House with George Clarke', 'tvshowid': 442, 'userrating': 0, 'year': 2016, 'ids': {'tvdb': '308164'}, 'rating': 0}, {'title': 'Vikings (2012)', 'tvshowid': 443, 'userrating': 0, 'year': 2012, 'ids': {'imdb': 'tt2455488', 'tvdb': '262368'}, 'rating': 0}, {'title': 'WandaVision', 'tvshowid': 444, 'userrating': 0, 'year': 2021, 'ids': {'imdb': 'tt9140560', 'tvdb': '362392'}, 'rating': 0}, {'title': 'Who Do You Think You Are?', 'tvshowid': 445, 'userrating': 0, 'year': 2004, 'ids': {'imdb': 'tt0429466', 'tvdb': '80522'}, 'rating': 0}, {'title': 'Who Do You Think You Are? (AU)', 'tvshowid': 446, 'userrating': 0, 'year': 2008, 'ids': {'imdb': 'tt1152296', 'tvdb': '82060'}, 'rating': 0}, {'title': 'Who Do You Think You Are? (US)', 'tvshowid': 447, 'userrating': 0, 'year': 2010, 'ids': {'imdb': 'tt1365047', 'tvdb': '146651'}, 'rating': 0}]
2021-03-20 13:05:57.850 T:15460   DEBUG <general>: [script.trakt] resources.lib.syncEpisodes: [Episodes Sync] Getting episode data from Kodi
2021-03-20 13:05:57.850 T:15460   DEBUG <general>: dbiplus::MysqlDatabase::connect replacing configured host 192.168.1.188 with resolved host 192.168.1.188
2021-03-20 13:05:58.705 T:15460   ERROR <general>: Skipped 26 duplicate messages..
2021-03-20 13:05:58.705 T:15460   ERROR <general>: Exception in thread 
2021-03-20 13:05:58.705 T:15460   ERROR <general>: trakt-sync
2021-03-20 13:05:58.705 T:15460   ERROR <general>: :

2021-03-20 13:05:58.705 T:15460   ERROR <general>: Traceback (most recent call last):

2021-03-20 13:05:58.705 T:15460   ERROR <general>:   File "C:\Program Files\WindowsApps\XBMCFoundation.Kodi_19.0.500.0_x64__4n2hpmxwrvr6p\system\python\Lib\threading.py", line 932, in _bootstrap_inner

2021-03-20 13:05:58.706 T:15460   ERROR <general>:     
2021-03-20 13:05:58.706 T:15460   ERROR <general>: self.run()
2021-03-20 13:05:58.706 T:15460   ERROR <general>: 

2021-03-20 13:05:58.706 T:15460   ERROR <general>:   File "C:\Users\hogen\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\service.py", line 371, in run

2021-03-20 13:05:58.706 T:15460   ERROR <general>:     
2021-03-20 13:05:58.706 T:15460   ERROR <general>: sync.sync()
2021-03-20 13:05:58.706 T:15460   ERROR <general>: 

2021-03-20 13:05:58.706 T:15460   ERROR <general>:   File "C:\Users\hogen\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\sync.py", line 67, in sync

2021-03-20 13:05:58.706 T:15460   ERROR <general>:     
2021-03-20 13:05:58.706 T:15460   ERROR <general>: syncEpisodes.SyncEpisodes(self, progress)
2021-03-20 13:05:58.706 T:15460   ERROR <general>: 

2021-03-20 13:05:58.706 T:15460   ERROR <general>:   File "C:\Users\hogen\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\syncEpisodes.py", line 21, in __init__

2021-03-20 13:05:58.707 T:15460   ERROR <general>:     
2021-03-20 13:05:58.707 T:15460   ERROR <general>: kodiShowsCollected, kodiShowsWatched = self.__kodiLoadShows()
2021-03-20 13:05:58.707 T:15460   ERROR <general>: 

2021-03-20 13:05:58.707 T:15460   ERROR <general>:   File "C:\Users\hogen\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\syncEpisodes.py", line 117, in __kodiLoadShows

2021-03-20 13:05:58.707 T:15460   ERROR <general>:     
2021-03-20 13:05:58.707 T:15460   ERROR <general>: show = {'title': show_col1['title'], 'ids': show_col1['ids'], 'year': show_col1['year'], 'rating': show_col1['rating'],
2021-03-20 13:05:58.707 T:15460   ERROR <general>: 

2021-03-20 13:05:58.707 T:15460   ERROR <general>: KeyError
2021-03-20 13:05:58.707 T:15460   ERROR <general>: : 
2021-03-20 13:05:58.707 T:15460   ERROR <general>: 'ids'
2021-03-20 13:05:58.707 T:15460   ERROR <general>: 

2021-03-20 13:05:58.707 T:15460   DEBUG <general>: .
2021-03-20 13:06:00.044 T:4136    DEBUG <general>: Skipped 1 duplicate messages..
hogenf commented 3 years ago

I think have solved it temporarily for me by manually deleting all row with missing title in db tvshow {'title': '', 'tvshowid': 370, 'userrating': 0, 'year': 0, 'rating': 0 }.

Problem for me is that one empty show gets recreated with rescan, and thet I cant sync again. Trakt probably need to handle tvshows with no title or NULL, since Kodi allows them for some reason in the db. But i dont know if this is the root cause or if its something else that happens to bypass the error when I delete that row.

xadox-1st commented 1 year ago

I have the same problem, but with movies. Is there some kind of manual way to fix this?

saarth commented 6 months ago

Sync has been failing for me for a while now. Here's the debug log.

`2023-12-31 11:28:44.113 T:4140 error : Exception in thread 2023-12-31 11:28:44.113 T:4140 error : trakt-sync 2023-12-31 11:28:44.113 T:4140 error : :

2023-12-31 11:28:44.113 T:4140 error : Traceback (most recent call last):

2023-12-31 11:28:44.113 T:4140 error : File "C:\Program Files\Kodi\system\python\Lib\threading.py", line 932, in _bootstrap_inner

2023-12-31 11:28:44.113 T:4140 error :
2023-12-31 11:28:44.113 T:4140 error : self.run() 2023-12-31 11:28:44.113 T:4140 error :

2023-12-31 11:28:44.113 T:4140 error : File "C:\Users\saarth\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\service.py", line 371, in run

2023-12-31 11:28:44.113 T:4140 error :
2023-12-31 11:28:44.113 T:4140 error : sync.sync() 2023-12-31 11:28:44.113 T:4140 error :

2023-12-31 11:28:44.113 T:4140 error : File "C:\Users\saarth\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\sync.py", line 57, in sync

2023-12-31 11:28:44.113 T:4140 error :
2023-12-31 11:28:44.113 T:4140 error : syncMovies.SyncMovies(self, progress) 2023-12-31 11:28:44.113 T:4140 error :

2023-12-31 11:28:44.113 T:4140 error : File "C:\Users\saarth\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\syncMovies.py", line 21, in init

2023-12-31 11:28:44.113 T:4140 error :
2023-12-31 11:28:44.113 T:4140 error : kodiMovies = self.__kodiLoadMovies() 2023-12-31 11:28:44.113 T:4140 error :

2023-12-31 11:28:44.113 T:4140 error : File "C:\Users\saarth\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\syncMovies.py", line 74, in __kodiLoadMovies

2023-12-31 11:28:44.113 T:4140 error :
2023-12-31 11:28:44.113 T:4140 error : kodi_movies = kodiUtilities.kodiRpcToTraktMediaObjects(data) 2023-12-31 11:28:44.113 T:4140 error :

2023-12-31 11:28:44.114 T:4140 error : File "C:\Users\saarth\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\kodiUtilities.py", line 245, in kodiRpcToTraktMediaObjects

2023-12-31 11:28:44.114 T:4140 error :
2023-12-31 11:28:44.114 T:4140 error : movieObject = kodiRpcToTraktMediaObject('movie', movie, mode) 2023-12-31 11:28:44.114 T:4140 error :

2023-12-31 11:28:44.114 T:4140 error : File "C:\Users\saarth\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\kodiUtilities.py", line 190, in kodiRpcToTraktMediaObject

2023-12-31 11:28:44.114 T:4140 error :
2023-12-31 11:28:44.114 T:4140 error : data['collected_at'] = utilities.convertDateTimeToUTC( 2023-12-31 11:28:44.114 T:4140 error :

2023-12-31 11:28:44.114 T:4140 error : File "C:\Users\saarth\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\utilities.py", line 194, in convertDateTimeToUTC

2023-12-31 11:28:44.114 T:4140 error :
2023-12-31 11:28:44.114 T:4140 error : utc = local.astimezone(tzutc()) 2023-12-31 11:28:44.114 T:4140 error :

2023-12-31 11:28:44.114 T:4140 error : File "C:\Users\saarth\AppData\Roaming\Kodi\addons\script.module.dateutil\lib\dateutil\tz\tz.py", line 222, in utcoffset

2023-12-31 11:28:44.114 T:4140 error :
2023-12-31 11:28:44.114 T:4140 error : if self._isdst(dt): 2023-12-31 11:28:44.114 T:4140 error :

2023-12-31 11:28:44.114 T:4140 error : File "C:\Users\saarth\AppData\Roaming\Kodi\addons\script.module.dateutil\lib\dateutil\tz\tz.py", line 291, in _isdst

2023-12-31 11:28:44.114 T:4140 error :
2023-12-31 11:28:44.114 T:4140 error : dstval = self._naive_is_dst(dt) 2023-12-31 11:28:44.114 T:4140 error :

2023-12-31 11:28:44.114 T:4140 error : File "C:\Users\saarth\AppData\Roaming\Kodi\addons\script.module.dateutil\lib\dateutil\tz\tz.py", line 260, in _naive_is_dst

2023-12-31 11:28:44.114 T:4140 error :
2023-12-31 11:28:44.114 T:4140 error : return time.localtime(timestamp + time.timezone).tm_isdst 2023-12-31 11:28:44.114 T:4140 error :

2023-12-31 11:28:44.114 T:4140 error : OSError 2023-12-31 11:28:44.114 T:4140 error : : 2023-12-31 11:28:44.114 T:4140 error : [Errno 22] Invalid argument 2023-12-31 11:28:44.114 T:4140 error :

2023-12-31 11:28:44.114 T:4140 debug : . 2023-12-31 11:28:44.150 T:18580 info : Skipped 1 duplicate messages..`

kodi.log

razzeee commented 6 months ago

Seems to be the same windows bug https://github.com/trakt/script.trakt/issues/630#issuecomment-1865003044 ran into

saarth commented 5 months ago

Tried the dateutil workaround but didn't fix it for me.

mechalv commented 2 months ago

Dateutil version has been updated to 2.9.0 after 3 years. I don’t know if it’s a coincidence or not