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.
(2020-10-21, 23:34)JonnyDunk Wrote: [ -> ]Followed same procedure as last time but hopefully this contains the requisite information

https://paste.kodi.tv/esizozoxup.kodi
Your log file shows the same uniquieid error as mine, so it looks like you are having the same issue as I had, described above.
Hi there,
I recently bought a new android based device to be used as media center and installed the latest version of Kodi on it. My old device had Jarvis on it. All of my movies (about 900) are on a NAS, each one in its own folder with its .nfo file and every movie has been scrobbled to trakt. Movie folders are grouped in a few "parent folders" (e.g. the 4k folder, the SD folder and so on), each of those "parent folder" is a different video source. I added the 4k source to kodi, scraped it (using local information) and ran trakt plugin. Out of 47 movies, just 16 have been updated by the trakt plugin (i.e. they have been set has seen), so I had a look on the log.

I found out that:
1. No one of my movies has the <unique id> tag in the nfo file
2. All of them have the <id> tag correctly filled in
3. If the title of the movie in my language (Italian) is the same of the original language the movie is correctly updated (e.g. the movie "Arrival" that has the same title in Italian has been set as seen, the movie "Dark waters" that in Italian is "Cattive acque" has not been updated)
4. If I manually add the unique id and run the trakt add on the movie is correctly updated.

Updating 900 nfo files would be a nightmare, is it possible to make the trakt add-on to use the <id> tag if the <unique id> is missing?

Thanks!
gio
(2020-10-25, 14:51)buongiorgio Wrote: [ -> ]Updating 900 nfo files would be a nightmare, is it possible to make the trakt add-on to use the <id> tag if the <unique id> is missing?

I wrote a small application that adds the uniqueid tag using the reference in the id tag, so I'm ok, but I think that is still relevant, I can assume many others are in a similar situation.
(2020-10-25, 14:51)buongiorgio Wrote: [ -> ]Updating 900 nfo files would be a nightmare, is it possible to make the trakt add-on to use the <id> tag if the <unique id> is missing?

I wonder if Thumbgen would be able to help with this task. I used to use it on a WD Live TV Hub. I've never used it for Kodi. Might be worth a try....
Hi there,

i was just wondering: the trakt plugin in my kodi setup is doing a great job of tracking my movies and tv shows. However everything watched over the Netflix-VOD-PlugIn or Amazon Prime-VOD-PlugIn is not showing up in my trakt history.
Any Ideas how i can set this up or what I need to do for it to work?

Thanks
EDIT - Actually after reading it properly there's probably not much need for an update, given no user should be exceeding 1,000 API calls in 5 minutes Smile

Trakt have recently introduced Rate Limiting, which may (or may not) require an addon update, see https://trakt.docs.apiary.io/#introducti...e-limiting
(2020-11-01, 10:36)Trillian_M1 Wrote: [ -> ]Hi there,

i was just wondering: the trakt plugin in my kodi setup is doing a great job of tracking my movies and tv shows. However everything watched over the Netflix-VOD-PlugIn or Amazon Prime-VOD-PlugIn is not showing up in my trakt history.
Any Ideas how i can set this up or what I need to do for it to work?

Thanks
Thanks for response, to a non techie it sounded like something bad was going to happen if I didn't do anything.

I only registered for a Trakt account and used Trakt in some addons, I didn't realise I had an API  Cool
Ember should also be able to update your nfo files.
I'm not sure what it happening, but my Trakt has definitely stopped working since the API changes. I only use it for personal use so doubt I'm doing more than the limit.

Any other way I can check or fix this ?
(2020-10-04, 16:23)moravec Wrote: [ -> ]Hello 

all of a sudden new movies are not added to trakt collection anymore. scrobbing works fine.

I still use17.6 better gui with madvr.

here the log:
log

eror:
15:57:31.733 T:3632   DEBUG: [script.trakt] resources.lib.syncMovies: [Movies Sync] Error getting Trakt.tv movie list, aborting movie Sync.

is this an error on trakt side?
Same issue with same error.  Did you find a solution to this?

adorewadog.kodi (paste)
(2020-11-04, 14:46)lamensterms Wrote: [ -> ]
(2020-10-04, 16:23)moravec Wrote: [ -> ]Hello 

all of a sudden new movies are not added to trakt collection anymore. scrobbing works fine.

I still use17.6 better gui with madvr.

here the log:
log

eror:
15:57:31.733 T:3632   DEBUG: [script.trakt] resources.lib.syncMovies: [Movies Sync] Error getting Trakt.tv movie list, aborting movie Sync.

is this an error on trakt side?
Same issue with same error.  Did you find a solution to this?

adorewadog.kodi (paste)

Yes I did - I guess Razze will release a new version. You can PN me - can send you the change. On your own risk - I am not a coder... ;-)
Not sure if it got anything to do with the changes to API or something to do with the Netflix addon.  But now when I watch something in the Netflix addon in Kodi, it's not getting picked up in trakt. 
And I'm pretty sure that was how it worked some time ago.

Edit: I just did a check with HBO, and it still picks up what I see in that plugin.
(2020-04-14, 01:12)Razze Wrote: [ -> ]
(2020-04-06, 19:10)WolvesPhil Wrote: [ -> ]
(2020-04-05, 00:45)Razze Wrote: [ -> ]yeah, can you point out something specific that's not working for you on 19?

Did you activate the setting on both machines? Are you using NFO files?  
I was finding that it was hanging at "Loading movies from Kodi"

In the log files I see the following, let me now if you want full logs...

2020-04-06 18:06:49.113 T:15540   ERROR: Exception in thread trakt-sync:
                                            Traceback (most recent call last):
                                              File "C:\Program Files\Kodi19\system\python\Lib\threading.py", line 926, in _bootstrap_inner
                                                self.run()
                                              File "C:\Users\kodi\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\service.py", line 328, in run
                                                sync.sync()
                                              File "C:\Users\kodi\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\sync.py", line 56, in sync
                                                syncMovies.SyncMovies(self, progress)
                                              File "C:\Users\kodi\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\syncMovies.py", line 18, in __init__
                                                kodiMovies = self.__kodiLoadMovies()
                                              File "C:\Users\kodi\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\syncMovies.py", line 66, in __kodiLoadMovies
                                                kodi_movies = kodiUtilities.kodiRpcToTraktMediaObjects(data)
                                              File "C:\Users\kodi\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\kodiUtilities.py", line 201, in kodiRpcToTraktMediaObjects
                                                movieObject = kodiRpcToTraktMediaObject('movie', movie, mode)
                                              File "C:\Users\kodi\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\kodiUtilities.py", line 163, in kodiRpcToTraktMediaObject
                                                data['ids'] = data.pop('uniqueid')
                                            KeyError: 'uniqueid' 
I'm guessing your using NFO files too, please update them with a recent version of your preferred NFO creation tool. It will add the "uniqueid" entry to the nfo files. That should fix the problem.

@WolvesPhil are there any news? I have the same problem. Sometimes nfo files are created, but I deleted all of them because I don't want them. But I have the same issue with the uniqueid.

Is it possible that there are nfo files stored in the database and can i clear it there because retry trakt sync?
@Razze  Or is there a possibility to print out the name of the current processed movie?
Can I send a Request to kodi besides this addon to find the error uniquid? This is my error:
Code:


2020-11-08 03:08:25.053 T:13984   ERROR <general>: Exception in thread 
2020-11-08 03:08:25.054 T:13984   ERROR <general>: trakt-sync
2020-11-08 03:08:25.054 T:13984   ERROR <general>: :
                                                   
2020-11-08 03:08:25.054 T:13984   ERROR <general>: Traceback (most recent call last):
                                                   
2020-11-08 03:08:25.054 T:13984   ERROR <general>:   File "C:\Program Files\Kodi\system\python\Lib\threading.py", line 932, in _bootstrap_inner
                                                   
2020-11-08 03:08:25.055 T:13984   ERROR <general>:     
2020-11-08 03:08:25.055 T:13984   ERROR <general>: self.run()
2020-11-08 03:08:25.055 T:13984   ERROR <general>: 
                                                   
2020-11-08 03:08:25.055 T:13984   ERROR <general>:   File "C:\Users\Eric\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\service.py", line 379, in run
                                                   
2020-11-08 03:08:25.057 T:13984   ERROR <general>:     
2020-11-08 03:08:25.058 T:13984   ERROR <general>: sync.sync()
2020-11-08 03:08:25.058 T:13984   ERROR <general>: 
                                                   
2020-11-08 03:08:25.058 T:13984   ERROR <general>:   File "C:\Users\Eric\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\sync.py", line 57, in sync
                                                   
2020-11-08 03:08:25.058 T:13984   ERROR <general>:     
2020-11-08 03:08:25.058 T:13984   ERROR <general>: syncMovies.SyncMovies(self, progress)
2020-11-08 03:08:25.059 T:13984   ERROR <general>: 
                                                   
2020-11-08 03:08:25.059 T:13984   ERROR <general>:   File "C:\Users\Eric\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\syncMovies.py", line 21, in __init__
                                                   
2020-11-08 03:08:25.059 T:13984   ERROR <general>:     
2020-11-08 03:08:25.059 T:13984   ERROR <general>: kodiMovies = self.__kodiLoadMovies()
2020-11-08 03:08:25.059 T:13984   ERROR <general>: 
                                                   
2020-11-08 03:08:25.059 T:13984   ERROR <general>:   File "C:\Users\Eric\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\syncMovies.py", line 74, in __kodiLoadMovies
                                                   
2020-11-08 03:08:25.059 T:13984   ERROR <general>:     
2020-11-08 03:08:25.060 T:13984   ERROR <general>: kodi_movies = kodiUtilities.kodiRpcToTraktMediaObjects(data)
2020-11-08 03:08:25.060 T:13984   ERROR <general>: 
                                                   
2020-11-08 03:08:25.060 T:13984   ERROR <general>:   File "C:\Users\Eric\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\kodiUtilities.py", line 204, in kodiRpcToTraktMediaObjects
                                                   
2020-11-08 03:08:25.060 T:13984   ERROR <general>:     
2020-11-08 03:08:25.060 T:13984   ERROR <general>: movieObject = kodiRpcToTraktMediaObject('movie', movie, mode)
2020-11-08 03:08:25.060 T:13984   ERROR <general>: 
                                                   
2020-11-08 03:08:25.060 T:13984   ERROR <general>:   File "C:\Users\Eric\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\kodiUtilities.py", line 166, in kodiRpcToTraktMediaObject
                                                   
2020-11-08 03:08:25.061 T:13984   ERROR <general>:     
2020-11-08 03:08:25.061 T:13984   ERROR <general>: data['ids'] = data.pop('uniqueid')
2020-11-08 03:08:25.061 T:13984   ERROR <general>: 
                                                   
2020-11-08 03:08:25.061 T:13984   ERROR <general>: KeyError
2020-11-08 03:08:25.061 T:13984   ERROR <general>: : 
2020-11-08 03:08:25.061 T:13984   ERROR <general>: 'uniqueid'
2020-11-08 03:08:25.061 T:13984   ERROR <general>: 
(2020-11-08, 04:11)eric1905 Wrote: [ -> ]@Razze  Or is there a possibility to print out the name of the current processed movie?
Can I send a Request to kodi besides this addon to find the error uniquid? This is my error:
Code:


2020-11-08 03:08:25.053 T:13984   ERROR <general>: Exception in thread 
2020-11-08 03:08:25.054 T:13984   ERROR <general>: trakt-sync
2020-11-08 03:08:25.054 T:13984   ERROR <general>: :
                                                   
2020-11-08 03:08:25.054 T:13984   ERROR <general>: Traceback (most recent call last):
                                                   
2020-11-08 03:08:25.054 T:13984   ERROR <general>:   File "C:\Program Files\Kodi\system\python\Lib\threading.py", line 932, in _bootstrap_inner
                                                   
2020-11-08 03:08:25.055 T:13984   ERROR <general>:     
2020-11-08 03:08:25.055 T:13984   ERROR <general>: self.run()
2020-11-08 03:08:25.055 T:13984   ERROR <general>: 
                                                   
2020-11-08 03:08:25.055 T:13984   ERROR <general>:   File "C:\Users\Eric\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\service.py", line 379, in run
                                                   
2020-11-08 03:08:25.057 T:13984   ERROR <general>:     
2020-11-08 03:08:25.058 T:13984   ERROR <general>: sync.sync()
2020-11-08 03:08:25.058 T:13984   ERROR <general>: 
                                                   
2020-11-08 03:08:25.058 T:13984   ERROR <general>:   File "C:\Users\Eric\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\sync.py", line 57, in sync
                                                   
2020-11-08 03:08:25.058 T:13984   ERROR <general>:     
2020-11-08 03:08:25.058 T:13984   ERROR <general>: syncMovies.SyncMovies(self, progress)
2020-11-08 03:08:25.059 T:13984   ERROR <general>: 
                                                   
2020-11-08 03:08:25.059 T:13984   ERROR <general>:   File "C:\Users\Eric\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\syncMovies.py", line 21, in __init__
                                                   
2020-11-08 03:08:25.059 T:13984   ERROR <general>:     
2020-11-08 03:08:25.059 T:13984   ERROR <general>: kodiMovies = self.__kodiLoadMovies()
2020-11-08 03:08:25.059 T:13984   ERROR <general>: 
                                                   
2020-11-08 03:08:25.059 T:13984   ERROR <general>:   File "C:\Users\Eric\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\syncMovies.py", line 74, in __kodiLoadMovies
                                                   
2020-11-08 03:08:25.059 T:13984   ERROR <general>:     
2020-11-08 03:08:25.060 T:13984   ERROR <general>: kodi_movies = kodiUtilities.kodiRpcToTraktMediaObjects(data)
2020-11-08 03:08:25.060 T:13984   ERROR <general>: 
                                                   
2020-11-08 03:08:25.060 T:13984   ERROR <general>:   File "C:\Users\Eric\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\kodiUtilities.py", line 204, in kodiRpcToTraktMediaObjects
                                                   
2020-11-08 03:08:25.060 T:13984   ERROR <general>:     
2020-11-08 03:08:25.060 T:13984   ERROR <general>: movieObject = kodiRpcToTraktMediaObject('movie', movie, mode)
2020-11-08 03:08:25.060 T:13984   ERROR <general>: 
                                                   
2020-11-08 03:08:25.060 T:13984   ERROR <general>:   File "C:\Users\Eric\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\kodiUtilities.py", line 166, in kodiRpcToTraktMediaObject
                                                   
2020-11-08 03:08:25.061 T:13984   ERROR <general>:     
2020-11-08 03:08:25.061 T:13984   ERROR <general>: data['ids'] = data.pop('uniqueid')
2020-11-08 03:08:25.061 T:13984   ERROR <general>: 
                                                   
2020-11-08 03:08:25.061 T:13984   ERROR <general>: KeyError
2020-11-08 03:08:25.061 T:13984   ERROR <general>: : 
2020-11-08 03:08:25.061 T:13984   ERROR <general>: 'uniqueid'
2020-11-08 03:08:25.061 T:13984   ERROR <general>: 

Ok, I saw that I do not have any tmdb entries in my uniqueid database table. For tv shows i have entries with tmdb but also with other ones (tvrage, tvdb), but the same media_id has no tmdb. I guess this is the problem? Is there a way I can recreate the tmdb entries for movies and tv shows without deleting the table because I want to remain my watched states?