Kodi Community Forum
Trakt.tv v3 - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Service Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=152)
+---- Thread: Trakt.tv v3 (/showthread.php?tid=220547)



RE: Trakt.tv v3 - amcfarla - 2021-03-14

(2021-03-14, 05:31)Degodefroi Wrote:
(2021-03-14, 04:10)amcfarla Wrote: Trakt has stopped scrobbling for me also when I moved to 19.  I forced a scrobble the past two days and when it is scanning TV shows it gets up to Parsing TV shows it gets to "Parsing 233 of 545 episode data from Kodi" and just stops there and never goes any further and I have to force close Kodi at that point.  I am trying to paste my log in the site listed below "https://paste.kodi.tv/" but I have zero idea how to get the address to share in this post.
You have to save the page. Top right shows 4 icons under the word pastebin..save, new, edit/duplicate and just text. And the link will be your browser URL.
Yeah that didn't work, I am just getting a message "Something went wrong"


RE: Trakt.tv v3 - Viper21 - 2021-03-15

(2021-03-09, 23:04)Viper21 Wrote: Automatic scrobble not working for me since moving to Matrix 19.0. Was working beautifully on v18. Running Trakt addon version 3.3.5 on Chromecast with Google TV.
Tried uninstalling and reinstalling the addon, but no joy. Everything else with the addon is working.
Any ideas how to resolve this?
Auto-scrobble and notifications all working great now with v3.4.1 on my Chromecast with Google TV. Thanks @Razze! [emoji106]


RE: Trakt.tv v3 - estuary_enthusiast - 2021-03-16

I've sync my kodi to my new trakt account. Can it reverse, sync trakt to kodi?


RE: Trakt.tv v3 - gibxxi - 2021-03-16

Still getting the same error in 3.4.1, although Notifications are now working. Enabled debug logging in Trakt and on Kodi, but it doesn't add much to the log that wasn't already there...
 
Code:
2021-03-16 17:57:54.912 T:9380    DEBUG <general>: [script.trakt] resources.lib.syncMovies: [Movies Sync] 82 movie(s) playcount will be updated in Kodi
2021-03-16 17:57:54.912 T:9380    DEBUG <general>: [script.trakt] resources.lib.syncMovies: [Movies Sync] Movies to add: A Good Day to Die Hard, A Walk Among the Tombstones, Alien, Anzio, Apollo 13, Babylon A.D., Battle of the Bulge, Beethoven, Ben-Hur, Blitz, Cobra, Conan the Barbarian, Dangerous Days: Making Blade Runner, City Slickers II: The Legend of Curly's Gold, Fantastic Four, Fantastic Four: Rise of the Silver Surfer, Forrest Gump, Frankie Boyle: If I Could Reach Out Through Your TV and Strangle You I Would, Frankie Boyle: The Last Days of Sodom, Ghost in the Shell, Green Zone, Herbie Fully Loaded, Highlander: Endgame, Highlander: The Source, Highlander III: The Sorcerer, Indiana Jones and the Kingdom of the Crystal Skull, Inside Man, Insomnia, Ivanhoe, Jack Ryan: Shadow Recruit, Jeff Dunham: Arguing with Myself, JFK, Jingle All the Way, Jumper, King Arthur: Legend of the Sword, Magnum Force, Mr. & Mrs. Smith, Noam Chomsky: Rebel Without a Pause, Passengers, Pirates of the Caribbean: Dead Man's Chest, Police Academy 2: Their First Assignment, Police Academy 3: Back in Training, Police Academy 4: Citizens on Patrol, Quantum of Solace, Rain Man, Red Tails, Schindler's List, Se7en, See No Evil, Hear No Evil, Serenity, Sherlock Holmes: A Game of Shadows, Source Code, Star Trek Into Darkness, Stargate, Sudden Impact, Superman Returns, T2 Trainspotting, Taken 3, Teenage Mutant Ninja Turtles, Teenage Mutant Ninja Turtles: Out of the Shadows, The Big Red One, The Boondock Saints II: All Saints Day, The Enforcer, The Equalizer, The Godfather: Part II, The Godfather: Part III, The Golden Child, The Hunt for Red October, The Ipcress File, The Magnificent Seven, The Man from U.N.C.L.E., The Monuments Men, The Mummy: Tomb of the Dragon Emperor, The Outlaw Josey Wales, The Shawshank Redemption, The Thin Red Line, The X Files: I Want to Believe, Transformers: Age of Extinction, Tremors 2: Aftershocks, Turner & Hooch, Unforgiven, Von Ryan's Express
2021-03-16 17:57:54.921 T:9380    ERROR <general>: Exception in thread
2021-03-16 17:57:54.921 T:9380    ERROR <general>: trakt-sync
2021-03-16 17:57:54.921 T:9380    ERROR <general>: :
2021-03-16 17:57:54.921 T:9380    ERROR <general>: Traceback (most recent call last):
2021-03-16 17:57:54.921 T:9380    ERROR <general>:   File "D:\Kodi Media Center\system\python\Lib\threading.py", line 932, in _bootstrap_inner
2021-03-16 17:57:54.921 T:9380    ERROR <general>:     
2021-03-16 17:57:54.921 T:9380    ERROR <general>: self.run()
2021-03-16 17:57:54.921 T:9380    ERROR <general>:
2021-03-16 17:57:54.921 T:9380    ERROR <general>:   File "D:\Kodi Media Center\portable_data\addons\script.trakt\resources\lib\service.py", line 371, in run
2021-03-16 17:57:54.922 T:9380    ERROR <general>:     
2021-03-16 17:57:54.922 T:9380    ERROR <general>: sync.sync()
2021-03-16 17:57:54.922 T:9380    ERROR <general>:
2021-03-16 17:57:54.922 T:9380    ERROR <general>:   File "D:\Kodi Media Center\portable_data\addons\script.trakt\resources\lib\sync.py", line 57, in sync
2021-03-16 17:57:54.922 T:9380    ERROR <general>:     
2021-03-16 17:57:54.922 T:9380    ERROR <general>: syncMovies.SyncMovies(self, progress)
2021-03-16 17:57:54.922 T:9380    ERROR <general>:
2021-03-16 17:57:54.922 T:9380    ERROR <general>:   File "D:\Kodi Media Center\portable_data\addons\script.trakt\resources\lib\syncMovies.py", line 45, in __init__
2021-03-16 17:57:54.922 T:9380    ERROR <general>:     
2021-03-16 17:57:54.922 T:9380    ERROR <general>: self.__addMoviesToKodiWatched(traktMovies, kodiMovies, 70, 80)
2021-03-16 17:57:54.922 T:9380    ERROR <general>:
2021-03-16 17:57:54.922 T:9380    ERROR <general>:   File "D:\Kodi Media Center\portable_data\addons\script.trakt\resources\lib\syncMovies.py", line 292, in __addMoviesToKodiWatched
2021-03-16 17:57:54.922 T:9380    ERROR <general>:     
2021-03-16 17:57:54.922 T:9380    ERROR <general>: chunked_movies = utilities.chunks([{"jsonrpc": "2.0", "method": "VideoLibrary.SetMovieDetails", "params": {"movieid": kodiMoviesToUpdate[i]['movieid'], "playcount": kodiMoviesToUpdate[i]
2021-03-16 17:57:54.922 T:9380    ERROR <general>:
2021-03-16 17:57:54.922 T:9380    ERROR <general>:   File "D:\Kodi Media Center\portable_data\addons\script.trakt\resources\lib\syncMovies.py", line 293, in <listcomp>
2021-03-16 17:57:54.922 T:9380    ERROR <general>:     
2021-03-16 17:57:54.922 T:9380    ERROR <general>: ['plays'], "lastplayed": utilities.convertUtcToDateTime(kodiMoviesToUpdate[i]['last_watched_at'])}, "id": i} for i in range(len(kodiMoviesToUpdate))], chunksize)
2021-03-16 17:57:54.922 T:9380    ERROR <general>:
2021-03-16 17:57:54.923 T:9380    ERROR <general>:   File "D:\Kodi Media Center\portable_data\addons\script.trakt\resources\lib\utilities.py", line 210, in convertUtcToDateTime
2021-03-16 17:57:54.923 T:9380    ERROR <general>:     
2021-03-16 17:57:54.923 T:9380    ERROR <general>: local = utc.astimezone(tzlocal())
2021-03-16 17:57:54.923 T:9380    ERROR <general>:
2021-03-16 17:57:54.923 T:9380    ERROR <general>:   File "D:\Kodi Media Center\portable_data\addons\script.module.dateutil\lib\dateutil\tz\_common.py", line 144, in fromutc
2021-03-16 17:57:54.923 T:9380    ERROR <general>:     
2021-03-16 17:57:54.923 T:9380    ERROR <general>: return f(self, dt)
2021-03-16 17:57:54.923 T:9380    ERROR <general>:
2021-03-16 17:57:54.923 T:9380    ERROR <general>:   File "D:\Kodi Media Center\portable_data\addons\script.module.dateutil\lib\dateutil\tz\_common.py", line 258, in fromutc
2021-03-16 17:57:54.923 T:9380    ERROR <general>:     
2021-03-16 17:57:54.923 T:9380    ERROR <general>: dt_wall = self._fromutc(dt)
2021-03-16 17:57:54.923 T:9380    ERROR <general>:
2021-03-16 17:57:54.923 T:9380    ERROR <general>:   File "D:\Kodi Media Center\portable_data\addons\script.module.dateutil\lib\dateutil\tz\_common.py", line 222, in _fromutc
2021-03-16 17:57:54.923 T:9380    ERROR <general>:     
2021-03-16 17:57:54.923 T:9380    ERROR <general>: dtoff = dt.utcoffset()
2021-03-16 17:57:54.923 T:9380    ERROR <general>:
2021-03-16 17:57:54.923 T:9380    ERROR <general>:   File "D:\Kodi Media Center\portable_data\addons\script.module.dateutil\lib\dateutil\tz\tz.py", line 222, in utcoffset
2021-03-16 17:57:54.924 T:9380    ERROR <general>:     
2021-03-16 17:57:54.924 T:9380    ERROR <general>: if self._isdst(dt):
2021-03-16 17:57:54.924 T:9380    ERROR <general>:
2021-03-16 17:57:54.924 T:9380    ERROR <general>:   File "D:\Kodi Media Center\portable_data\addons\script.module.dateutil\lib\dateutil\tz\tz.py", line 294, in _isdst
2021-03-16 17:57:54.924 T:9380    ERROR <general>:     
2021-03-16 17:57:54.924 T:9380    ERROR <general>: if self.is_ambiguous(dt):
2021-03-16 17:57:54.924 T:9380    ERROR <general>:
2021-03-16 17:57:54.924 T:9380    ERROR <general>:   File "D:\Kodi Media Center\portable_data\addons\script.module.dateutil\lib\dateutil\tz\tz.py", line 256, in is_ambiguous
2021-03-16 17:57:54.924 T:9380    ERROR <general>:     
2021-03-16 17:57:54.924 T:9380    ERROR <general>: (naive_dst != self._naive_is_dst(dt - self._dst_saved)))
2021-03-16 17:57:54.924 T:9380    ERROR <general>:
2021-03-16 17:57:54.924 T:9380    ERROR <general>:   File "D:\Kodi Media Center\portable_data\addons\script.module.dateutil\lib\dateutil\tz\tz.py", line 260, in _naive_is_dst
2021-03-16 17:57:54.924 T:9380    ERROR <general>:     
2021-03-16 17:57:54.924 T:9380    ERROR <general>: return time.localtime(timestamp + time.timezone).tm_isdst
2021-03-16 17:57:54.924 T:9380    ERROR <general>:
2021-03-16 17:57:54.924 T:9380    ERROR <general>: OSError
2021-03-16 17:57:54.924 T:9380    ERROR <general>: :
2021-03-16 17:57:54.924 T:9380    ERROR <general>: [Errno 22] Invalid argument
2021-03-16 17:57:54.924 T:9380    ERROR <general>:

(Whitespaces / line spacing removed) At a glance, there's nothing else in the log pertaining to the trakt addon. This is on a system running Windows 10 Pro (build 19401). All 3 of my windows-based systems that can run Kodi are suffering from this same issue regarding the Trakt addon. The above was triggered by a manual sync. The notification(s) for syncing movies and TV shows likewise are displayed after the startup scan  / library update, but no 'completion' notifications are ever shown for either.

Dan / Gib.


RE: Trakt.tv v3 - Hitcher - 2021-03-17

One of the latest updates stopped rate episode after watching from working. Rate from context still works.

https://paste.kodi.tv/gixugezote.kodi


RE: Trakt.tv v3 - AgitoM - 2021-03-17

Recently I've been upgrading my Kodi Leia to Kodi Matrix. However the Trakt plugin is causing Kodi Matrix to crash.

This is what I did on my last attempt:
- Clean Install Kodi
- Setup Library
- Install a minimum of plugins
- Install Trakt plugin
- Configure the Trakt plugin, leave the "sync on library update" setting off
- Manually synchronise data with Trakt

After the manual synchronisation is completed, Kodi will crash on startup.
My library updates on startup, but Trakt does not run at that moment.

I've seen this behavior multiple times, the procedure I describe above has been done twice.
Every time Kodi became unusable after the Trakt sync, I've done a Kodi reinstallation with backup restore with a version that didn't include the Trakt plugin yet.

Has anyone encountered this issue so far? If so, what can be done about it?


RE: Trakt.tv v3 - Razze - 2021-03-18

@gibxxi Can you check which version of dateutil your using at "D:\Kodi Media Center\portable_data\addons\script.module.dateutil\" should be an addon.xml that has the version. If that's the latest (2.8.1) you might want to create an issue at https://github.com/dateutil/dateutil


RE: Trakt.tv v3 - AgitoM - 2021-03-18

(2021-03-18, 01:30)Razze Wrote: @gibxxi Can you check which version of dateutil your using at "D:\Kodi Media Center\portable_data\addons\script.module.dateutil\" should be an addon.xml that has the version. If that's the latest (2.8.1) you might want to create an issue at https://github.com/dateutil/dateutil

Edit: Due to a quick read, I didn't notice it was not a reply to my post.


RE: Trakt.tv v3 - gibxxi - 2021-03-18

(2021-03-18, 01:30)Razze Wrote: @gibxxi Can you check which version of dateutil your using at "D:\Kodi Media Center\portable_data\addons\script.module.dateutil\" should be an addon.xml that has the version. If that's the latest (2.8.1) you might want to create an issue at https://github.com/dateutil/dateutil

Confirmed. It's version 2.8.1. I'll open an issue on their github page. Thanks for checking Razzee.

Dan / Gib.


RE: Trakt.tv v3 - amcfarla - 2021-03-19

(2021-03-14, 04:10)amcfarla Wrote: Trakt has stopped scrobbling for me also when I moved to 19.  I forced a scrobble the past two days and when it is scanning TV shows it gets up to Parsing TV shows it gets to "Parsing 233 of 545 episode data from Kodi" and just stops there and never goes any further and I have to force close Kodi at that point.  I am trying to paste my log in the site listed below "https://paste.kodi.tv/" but I have zero idea how to get the address to share in this post.

Ok I did a fresh 'appdata/roaming/kodi' folder and basically the only add-on I have installed with my library is Trakt.tv addon.  It is still getting stuck at "Parsing 233 of 545 episode data from Kodi" but I was able to get a log and paste at the paste.kodi.tv successfully.  If there is something else that is needed please let me know and I will try to assist.  This started happening with Kodi 19, I was able to sync fine in the last Kodi 18 version.  Here is the log: https://paste.kodi.tv/tolupagope.kodi


RE: Trakt.tv v3 - FXB78 - 2021-03-19

I've read the past few pages & am still none the wiser, is the addon broken for some people, or everyone? It stopped working for me maybe a week or so ago, seemingly out of the blue. dateutils hasn't been updated since September so I'm not sure how the addon has suddenly stopped working, unless trakt changed something?


RE: Trakt.tv v3 - AgitoM - 2021-03-19

(2021-03-17, 22:32)AgitoM Wrote: Recently I've been upgrading my Kodi Leia to Kodi Matrix. However the Trakt plugin is causing Kodi Matrix to crash.

This is what I did on my last attempt:
- Clean Install Kodi
- Setup Library
- Install a minimum of plugins
- Install Trakt plugin
- Configure the Trakt plugin, leave the "sync on library update" setting off
- Manually synchronise data with Trakt

After the manual synchronisation is completed, Kodi will crash on startup.
My library updates on startup, but Trakt does not run at that moment.

I've seen this behavior multiple times, the procedure I describe above has been done twice.
Every time Kodi became unusable after the Trakt sync, I've done a Kodi reinstallation with backup restore with a version that didn't include the Trakt plugin yet.

Has anyone encountered this issue so far? If so, what can be done about it?

Has anyone else encountered this issue? Any suggestion what to do about it? Any additional information I can provide?
Really hope I can resolve this. The issue with Kodi becoming unusable is the last hurdle holding me back from upgrading Kodi Leia to Matrix. I heavily use the Trakt plugin to sync what I watched accross devices.


RE: Trakt.tv v3 - Razze - 2021-03-20

@FXB78 it's not everyone, it mostly happens for people with nfo files or people still using the old scrapers I think

@AgitoM any logfile might help


RE: Trakt.tv v3 - FXB78 - 2021-03-20

(2021-03-20, 18:45)Razze Wrote: @FXB78 it's not everyone, it mostly happens for people with nfo files or people still using the old scrapers I think
Thanks, it wasn't working on my CoreELEC 19.0 install so I tested on Windows (Matrix) & it scrobbles just fine. So I replaced the script.module.trakt & script.trakt folders in CoreELEC for those from the Windows install and lo & behold it's working again! No idea why, but at least I got it working.


RE: Trakt.tv v3 - FXB78 - 2021-03-20

(2021-03-20, 19:21)FXB78 Wrote:
(2021-03-20, 18:45)Razze Wrote: @FXB78 it's not everyone, it mostly happens for people with nfo files or people still using the old scrapers I think
Thanks, it wasn't working on my CoreELEC 19.0 install so I tested on Windows (Matrix) & it scrobbles just fine. So I replaced the script.module.trakt & script.trakt folders in CoreELEC for those from the Windows install and lo & behold it's working again! No idea why, but at least I got it working.
Hmmm, it seems I spoke too soon. It only works for some shows, and I can't see any reason for it.

Line of Duty works, and gives me this in the log:
Code:
DEBUG <general>: [script.trakt] resources.lib.scrobbler: playbackStarted(data: {'type': 'episode', 'season': 5, 'episode': 6, 'showtitle': 'Line of Duty', 'title': 'Line of Duty', 'year': 2019})
DEBUG <general>: [script.trakt] resources.lib.scrobbler: Watching: episode
DEBUG <general>: [script.trakt] resources.lib.scrobbler: Episode type, curVideoInfo: {'title': 'Line of Duty', 'season': 5, 'number': 6}
DEBUG <general>: [script.trakt] resources.lib.scrobbler: Episode type, traktShowSummary: {'title': 'Line of Duty', 'year': 2019}
DEBUG <general>: [script.trakt] resources.lib.scrobbler: scrobble()
DEBUG <general>: [script.trakt] resources.lib.scrobbler: scrobble sending show object: {'title': 'Line of Duty', 'year': 2019}

Pit Bulls and Parolees doesn't scrobble & gives me this:
Code:
DEBUG <general>: [script.trakt] urllib3.connectionpool: https://api.trakt.tv:443 "POST /scrobble/start HTTP/1.1" 404 None
WARNING <general>: [script.trakt] trakt.interfaces.base: Request failed: "POST /scrobble/start" - 404: "Method exists, but no record found" (Not Found)
DEBUG <general>: [script.trakt] resources.lib.scrobbler: Failed to scrobble episode: {'title': 'Pit Bulls and Parolees', 'year': 2019} | {'title': 'Pit Bulls and Parolees', 'season': 14, 'number': 6} | 0.0894986260704405 | start

The full log is here: https://paste.kodi.tv/feyixiraqe.kodi