trakt / script.trakt

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

Cannot sync movies from Trakt to Kodi - log attached #503

Closed piejanssens closed 4 years ago

piejanssens commented 4 years ago
2020-06-06 21:23:18.920 T:123145464295424   DEBUG: [script.trakt] resources.lib.syncMovies: [Movies Sync] Getting movie data from Kodi
2020-06-06 21:23:23.075 T:123145464295424   DEBUG: [script.trakt] resources.lib.syncMovies: [Movies Sync] Getting movie collection from Trakt.tv
2020-06-06 21:23:23.081 T:123145464295424   DEBUG: [script.trakt] urllib3.connectionpool: Starting new HTTPS connection (1): api.trakt.tv:443
2020-06-06 21:23:23.606 T:123145464295424   DEBUG: [script.trakt] urllib3.connectionpool: https://api.trakt.tv:443 "GET /sync/collection/movies HTTP/1.1" 200 None
2020-06-06 21:23:25.720 T:123145464295424   DEBUG: [script.trakt] urllib3.connectionpool: https://api.trakt.tv:443 "GET /sync/watched/movies HTTP/1.1" 200 None
2020-06-06 21:23:36.863 T:123145464295424   DEBUG: [script.trakt] urllib3.connectionpool: https://api.trakt.tv:443 "GET /sync/ratings/movies/%7B('imdb',%20'tt0816692'):%20%3CMovie%20u'Interstellar'%20(2014)%3E,%20('imdb',%20'tt0114369'):%20%3CMovie%20u'Se7en'%20(1995)%3E,%20('imdb',%20'tt1413492'):%20%3CMovie%20u'12%20Strong'%20(2018)%3E,%20('imdb',%20'tt3276924'):%20%3CMovie%20u'Heist'%20(2015)%3E,%20('imdb',%20'tt5519340'):%20%3CMovie%20u'Bright'%20(2017)%3E,%20('imdb',%20'tt0478311'):%20%3CMovie%20u'Knocked%20Up'%20(2007)%3E,%20('imdb',%20'tt1253864'):%20%3CMovie%20u'Immortals'%20(2011)%3E,%20('imdb',%20'tt0396269'):%20%3CMovie%20u'Wedding%20Crashers'%20(2005)%3E,%20('imdb',%20'tt2935476'):%20%3CMovie%20u'Far%20from%20the%20Madding%20Crowd'%20(2015)%3E,%20('imdb',%20'tt1790809'):%20%3CMovie%20u'Pirates%20of%20the%20Caribbean:%20Dead%20Men%20Tell%20No%20Tales'%20(2017)%3E,%20('imdb',%20'tt1228705'):%20%3CMovie%20u'Iron%20Man%202'%20(2010)%3E,%20('imdb',%20'tt3014866'):%20%3CMovie%20u'Criminal'%20(2016)%3E,%20('imdb',%20'tt1402488'):%20%3CMovie%20u'Happy%20Feet%20Two'%20(2011)%3E,%20('imdb',%20'tt3233418'):%20%3CMovie%20u'Spare%20Parts'%20(2015)%3E,%20('imdb',%20'tt0401997'):%20%3CMovie%20u'Breach'%20(2007)%3E,%20('imdb',%20'tt5657846'):%20%3CMovie%20u%22Daddy's%20Home%202%22%20(2017)%3E,%20('imdb',%20'tt6921996'):%20%3CMovie%20u'Johnny%20English%20Strikes%20Again'%20(2018)%3E,%20('imdb',%20'tt1127888'):%20%3CMovie%20u'Larry%20Flynt:%20The%20Right%20to%20Be%20Left%20Alone'%20(2007)%3E,%20('imdb',%20'tt0467197'):%20%3CMovie%20u'Max%20Payne'%20(2008)%3E,%20('imdb',%20'tt0099423'):%20%3CMovie%20u'Die%20Hard%202'%20(1990)%3E,%20('imdb',%20'tt7959026'):%20%3CMovie%20u'The%20Mule'%20(2018)%3E,%20('imdb',%20'tt0799934'):%20%3CMovie%20u'Be%20Kind%20Rewind'%20(2008)%3E,%20('imdb',%20'tt1155056'):%20%3CMovie%20u'I%20Love%20You,%20Man'%20(2009)%3E,%20('imdb',%20'tt0086190'):%20%3CMovie%20u'Return%20of%20the%20Jedi'%20(1983)%3E,%20('imdb',%20'tt2917388'):%20%3CMovie%20u'Kidnapping%20Mr.%20Heineken'%20(2015)%3E,%20('imdb',%20'tt0095016'):%20%3CMovie%20u'Die%20Hard'%20(1988)%3E,%20('imdb',%20'tt1701210'):%20%3CMovie%20u'Black%20Gold'%20(2011)%3E,%20('imdb',%20'tt1282140'):%20%3CMovie%20u'Easy%20A'%20(2010)%3E,%20('imdb',%20'tt1571234'):%20%3CMovie%20u'Mortal%20Engines'%20(2018)%3E,%20('imdb',%20'tt1130884'):%20%3CMovie%20u'Shutter%20Island'%20(2010)%3E,%20('imdb',%20'tt3072482'):%20%3CMovie%20u'Hardcore%20Henry'%20(2015)%3E,%20('imdb',%20'tt3278330'):%20%3CMovie%20u'Tale%20of%20Tales'%20(2015)%3E,%20('imdb',%20'tt0493405'):%20%3CMovie%20u'CHiPS'%20(2017)%3E,%20('imdb',%20'tt0429493'):%20%3CMovie%20u'The%20A-Team'%20(2010)%3E,%20('imdb',%20'tt1119646'):%20%3CMovie%20u'The%20Hangover'%20(2009)%3E,%20('imdb',%20'tt1615160'):%20%3CMovie%20u'The%20Foreigner'%20(2017)%3E,%20('imdb',%20'tt3783958'):%20%3CMovie%20u'La%20La%20Land'%20(2016)%3E,%20('imdb',%20'tt4645330'):%20%3CMovie%20u'Denial'%20(2016)%3E,%20('imdb',%20'tt1192628'):%20%3CMovie%20u'Rango'%20(2011)%3E,%20('imdb',%20'tt1010048'):%20%3CMovie%20u'Slumdog%20Millionaire'%20(2008)%3E,%20('imdb',%20'tt2231253'):%20%3CMovie%20u'Wild%20Card'%20(2015)%3E,%20('imdb',%20'tt0993842'):%20%3CMovie%20u'Hanna'%20(2011)%3E,%20('imdb',%20'tt0445934'):%20%3CMovie%20u'Blades%20of%20Glory'%20(2007)%3E,%20('imdb',%20'tt3079380'):%20%3CMovie%20u'Spy'%20(2015)%3E,%20('imdb',%20'tt7775622'):%20%3CMovie%20u'Free%20Solo'%20(2018)%3E,%20('imdb',%20'tt1790885'):%20%3CMovie%20u'Zero%20Dark%20Thirty'%20(2012)%3E,%20('imdb',%20'tt1899353'):%20%3CMovie%20u'The%20Raid'%20(2011)%3E,%20('imdb',%20'tt0337563'):%20%3CMovie%20u'13%20Going%20on%2030'%20(2004)%3E,%20('imdb',%20'tt4276820'):%20%3CMovie%20u'The%20Founder'%20(2016)%3E,%20('imdb',%20'tt2231461'):%20%3CMovie%20u'Rampage'%20(2018)%3E,%20('imdb',%20'tt10199590'):%20%3CMovie%20u'Les%20Mis%5Cxe9rables'%20(2019)%3E,%20('imdb',%20'tt0112281'):%20%3CMovie%20u'Ace%20Ventura:%20When%20Nature%20Calls'%20(1995)%3E,%20('imdb',%20'tt0080684'):%20%3CMovie%20u'The%20Empire%20Strikes%20Back'%20(1980)%3E,%20('imdb',%20'tt3183660'):%20%3CMovie%20u'Fantastic%20Beasts%20and%20Where%20to%20Find%20Them'%20(2016)%3E,%20('imdb',%20'tt0295701'):%20%3CMovie%20u'xXx'%20(2002)%3E,%20('imdb',%20'tt1825974'):%20%3CMovie%20u'Swooni'%20(2011)%3E,%20('imdb',%20'tt1125849'):%20%3CMovie%20u'The%20Wrestler'%20(2008)%3E,%20('imdb',%20'tt0448694'):%20%3CMovie%20u'Puss%20in%20Boots'%20(2011)%3E,%20('imdb',%20'tt1198156'):%20%3CMovie%20u%22You're%20Not%20You%22%20(2014)%3E,%20('imdb',%20'tt0365485'):%20%3CMovie%20u'The%20Matador'%20(2005)%3E,%20('imdb',%20'tt1555149'):%20%3CMovie%20u'Elite%20Squad:%20The%20Enemy%20Within'%20(2010)%3E,%20('imdb',%20'tt0286106'):%20%3CMovie%20u'Signs'%20(2002)%3E,%20('imdb',%20'tt5031332'):%20%3CMovie%20u'McLaren'%20(2017)%3E,%20('imdb',%20'tt0411272'):%20%3CMovie%20u'Mesrine:%20Public%20Enemy%20 HTTP/1.1" 400 0
2020-06-06 21:23:36.869 T:123145464295424   DEBUG: [script.trakt] resources.lib.syncMovies: [Movies Sync] Error getting Trakt.tv movie list, aborting movie Sync.
2020-06-06 21:23:36.926 T:123145464295424   DEBUG: [script.trakt] resources.lib.sync: Episode sync is disabled, skipping.
2020-06-06 21:23:36.926 T:123145464295424   DEBUG: [script.trakt] resources.lib.sync: [Sync] Finished synchronization with Trakt.tv

Let me know what I can do to provide more info. I would really like to sync my trakt data to my Kodi instance.

piejanssens commented 4 years ago

The call for https://api.trakt.tv:443 "GET /sync/ratings/movies/...seems to end with an HTTP error 400. Could it be that the request/URL is too long?

I tried to use Fiddler to see the full request, but it's not sent. I guess it fails before even sending the request.

piejanssens commented 4 years ago

As a workaround I have commented the following line and that allowed me to complete the sync for the watched statuses. #traktMovies = self.sync.traktapi.getMoviesRated(traktMovies)

Dnkhatri commented 4 years ago

As a workaround I have commented the following line and that allowed me to complete the sync for the watched statuses. #traktMovies = self.sync.traktapi.getMoviesRated(traktMovies)

Hi i am facing the same problem can you tell me what file you modified to fix it as I am unable to find the above

piejanssens commented 4 years ago

https://github.com/trakt/script.trakt/blob/master/resources/lib/syncMovies.py#L82

razzeee commented 4 years ago

Are you able to check which version of script.module.trakt your running? And if it's 4.X can you downgrade and check if that makes a difference?

flhthemi commented 4 years ago

In case you haven't seen it check the thread I posted a debug (debug Kodi = ON debug Trakt = ON) and discovered by rolling back to trakt.py V3.1.0 it would work again. So it SEEMS trakt.py V4.1.0 might have an issue.

https://forum.kodi.tv/showthread.php?tid=220547&pid=2955335#pid2955335

razzeee commented 4 years ago

This should work again for leia users.

tiagogaspar8 commented 4 years ago

Is there any updates for the kodi 19 users?

razzeee commented 4 years ago

https://github.com/xbmc/repo-scripts/pull/1576

tiagogaspar8 commented 4 years ago

Wow, my question was poorly timed. I have tried to update the add-on but the new version isn't available yet. Do you have any idea of the time it takes to go to the repo?

razzeee commented 4 years ago

At most a day

On Sat, Jun 13, 2020, 01:30 Tiago Gaspar notifications@github.com wrote:

Wow, my question was poorly timed. I have tried to update the add-on but the new version isn't available yet. Do you have any idea of the time it takes to go to the repo?

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

tiagogaspar8 commented 4 years ago

Thanks for the help! Since I'm here I'll take this opportunity to thank you for the great work!