trakt / script.trakt

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

Errors with Sync library #508

Closed burekas7 closed 4 years ago

burekas7 commented 4 years ago

Hi,

First I want to notice that I'm still using Kodi 17.6, yes, I know it's too old, but I still use it because of skin issue until I find a new one instead. So now I have the 3.2.0 version.

I think the errors start in the last month, after starting the "Update Library" option, The sync 'start' notifications are shown (Movies and TV Shows) but the 'finish' notification aren't shown anymore. Just to mention, one way is working, when I finished to watch or rating an item, it's update trakt. But the other way, syncing from Trakt back to kodi it doesnt work. For example, I block the option of rating again if an item is already rated, but now it doesn't know that and it lets me rating it again. Also run the addon by clicking on it starting the sync process and stuck when it almost done.

Is something changed lately? Thanks


Some info from the log:

In the log I found this:

Regarding 'Movies':

DEBUG: [script.trakt] urllib3.connectionpool: https://api.trakt.tv:443 "GET /sync/collection/movies HTTP/1.1" 200 None
DEBUG: [script.trakt] urllib3.connectionpool: https://api.trakt.tv:443 "GET /sync/watched/movies HTTP/1.1" 200 None

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'tt1964418'):%20%3CMovie%20u'Tomorrowland'%20(2015)%3E,%20('imdb',%20'tt2126355'):%20%3CMovie%20u'San%20Andreas'%20(2015)%3E,%20('imdb',%20'tt3276924'):%20%3CMovie%20u'Heist'%20(2015)%3E,%20('imdb',%20'tt6644200'):%20%3CMovie%20u'A%20Quiet%20Place'%20(2018)%3E,%20('imdb',%20'tt1187064'):%20%3CMovie%20u'Triangle'%20(2009)%3E,%20('imdb',%20'tt5758778'):%20%3CMovie%20u'Skyscraper'%20(2018)%3E,%20('imdb',%20'tt0212338'):%20%3CMovie%20u'Meet%20the%20Parents'%20(2000)%3E,%20('imdb',%20'tt3606756'):%20%3CMovie%20u'Incredibles%202'%20(2018)%3E,%20('imdb',%20'tt5360952'):%20%3CMovie%20u'The%20Hurricane%20Heist'%20(2018)%3E,%20('imdb',%20'tt0317705'):%20%3CMovie%20u'The%20Incredibles'%20(2004)%3E,%20('imdb',%20'tt0106611'):%20%3CMovie%20u'Cool%20Runnings'%20(1993)%3E,%20('imdb',%20'tt7975244'):%20%3CMovie%20u'Jumanji:%20The%20Next%20Level'%20(2019)%3E,%20('imdb',%20'tt0322589'):%20%3CMovie%20u'Honey'%20(2003)%3E,%20('imdb',%20'tt3401882'):%20%3CMovie%20u'Fist%20Fight'%20(2017)%3E,%20('imdb',%20'tt6772950'):%20%3CMovie%20u'Truth%20or%20Dare'%20(2018)%3E,%20('imdb',%20'tt0109830'):%20%3CMovie%20u'Forrest%20Gump'%20(1994)%3E,%20('imdb',%20'tt1563742'):%20%3CMovie%20u'Overboard'%20(2018)%3E,%20('imdb',%20'tt4287320'):%20%3CMovie%20u'The%20Circle'%20(2017)%3E,%20('imdb',%20'tt5657846'):%20%3CMovie%20u%22Daddy's%20Home%202%22%20(2017)%3E,%20('imdb',%20'tt0970866'):%20%3CMovie%20u'Little%20Fockers'%20(2010)%3E,%20('imdb',%20'tt2267998'):%20%3CMovie%20u'Gone%20Girl'%20(2014)%3E,%20('imdb',%20'tt5116302'):%20%3CMovie%20u'Togo'%20(2019)%3E,%20('imdb',%20'tt0369610'):%20%3CMovie%20u'Jurassic%20World'%20(2015)%3E,%20('imdb',%20'tt1800246'):%20%3CMovie%20u'That%20Awkward%20Moment'%20(2014)%3E,%20('imdb',%20'tt2626350'):%20%3CMovie%20u'Step%20Up%20All%20In'%20(2014)%3E,%20('imdb',%20'tt1711525'):%20%3CMovie%20u'Office%20Christmas%20Party'%20(2016)%3E,%20('imdb',%20'tt3110958'):%20%3CMovie%20u'Now%20You%20See%20Me%202'%20(2016)%3E,%20('imdb',%20'tt1179933'):%20%3CMovie%20u'10%20Cloverfield%20Lane'%20(2016)%3E,%20('imdb',%20'tt1392170'):%20%3CMovie%20u'The%20Hunger%20Games'%20(2012)%3E,%20('imdb',%20'tt1355644'):%20%3CMovie%20u'Passengers'%20(2016)%3E,%20('imdb',%20'tt0120338'):%20%3CMovie%20u'Titanic'%20(1997)%3E,%20('imdb',%20'tt4425200'):%20%3CMovie%20u'John%20Wick:%20Chapter%202'%20(2017)%3E,%20('imdb',%20'tt2543164'):%20%3CMovie%20u'Arrival'%20(2016)%3E,%20('imdb',%20'tt5093026'):%20%3CMovie%20u'Papillon'%20(2017)%3E,%20('imdb',%20'tt10431500'):%20%3CMovie%20u'Miracle%20in%20Cell%20No.%207'%20(2019)%3E,%20('imdb',%20'tt1258197'):%20%3CMovie%20u'Exam'%20(2009)%3E,%20('imdb',%20'tt1396484'):%20%3CMovie%20u'It'%20(2017)%3E,%20('imdb',%20'tt10276470'):%20%3CMovie%20u'Work%20It'%20(2020)%3E,%20('imdb',%20'tt1727824'):%20%3CMovie%20u'Bohemian%20Rhapsody'%20(2018)%3E,%20('imdb',%20'tt2057392'):%20%3CMovie%20u'Eye%20in%20the%20Sky'%20(2015)%3E,%20('imdb',%20'tt1981677'):%20%3CMovie%20u'Pitch%20Perfect'%20(2012)%3E,%20('imdb',%20'tt3410834'):%20%3CMovie%20u'Allegiant'%20(2016)%3E,%20('imdb',%20'tt4881806'):%20%3CMovie%20u'Jurassic%20World:%20Fallen%20Kingdom'%20(2018)%3E,%20('imdb',%20'tt3741834'):%20%3CMovie%20u'Lion'%20(2016)%3E,%20('imdb',%20'tt1390411'):%20%3CMovie%20u'In%20the%20Heart%20of%20the%20Sea'%20(2015)%3E,%20('imdb',%20'tt1951265'):%20%3CMovie%20u'The%20Hunger%20Games:%20Mockingjay%20-%20Part%201'%20(2014)%3E,%20('imdb',%20'tt6306064'):%20%3CMovie%20u'Adrift'%20(2018)%3E,%20('imdb',%20'tt1911644'):%20%3CMovie%20u'The%20Call'%20(2013)%3E,%20('imdb',%20'tt4468740'):%20%3CMovie%20u'Paddington%202'%20(2017)%3E,%20('imdb',%20'tt1781922'):%20%3CMovie%20u'No%20Escape'%20(2015)%3E,%20('imdb',%20'tt2096673'):%20%3CMovie%20u'Inside%20Out'%20(2015)%3E,%20('imdb',%20'tt1677720'):%20%3CMovie%20u'Ready%20Player%20One'%20(2018)%3E,%20('imdb',%20'tt4046784'):%20%3CMovie%20u'Maze%20Runner:%20The%20Scorch%20Trials'%20(2015)%3E,%20('imdb',%20'tt2713180'):%20%3CMovie%20u'Fury'%20(2014)%3E,%20('imdb',%20'tt8368406'):%20%3CMovie%20u'Vivarium'%20(2019)%3E,%20('imdb',%20'tt1477834'):%20%3CMovie%20u'Aquaman'%20(2018)%3E,%20('imdb',%20'tt2872732'):%20%3CMovie%20u'Lucy'%20(2014)%3E,%20('imdb',%20'tt3531824'):%20%3CMovie%20u'Nerve'%20(2016)%3E,%20('imdb',%20'tt0223897'):%20%3CMovie%20u'Pay%20It%20Forward'%20(2000)%3E,%20('imdb',%20'tt5848272'):%20%3CMovie%20u'Ralph%20Breaks%20the%20Internet'%20(2018)%3E,%20('imdb',%20'tt6343314'):%20%3CMovie%20u'Creed%20II'%20(2018)%3E,%20('imdb',%20'tt8579674'):%20%3CMovie%20u'1917'%20(2019)%3E,%20('imdb',%20'tt1458169'):%20%3CMovie%20u'Kidnap'%20(2017)%3E,%20('imdb',%20'tt0114898'):%20%3CMovie%20u'Waterworld'%20(1995)%3E,%20('imdb',%20'tt9059704'):%20%3CMovie%20u'An%20American%20Pickle'%20(2020)%3E,%20('imdb',%20'tt2139881'):%20%3CMovie%20u'Long%20Shot'%20(2019)%3E,%20('imdb',%20'tt3553976'):%20%3CMovie%20u'Captain%20Fantastic'%20(2016)%3E,%20('imdb',%20'tt0097523'):%20%3CMovie%20u'Honey,%20I%20Shrunk%20the%20Kids'%20(1989)%3E,%20('imdb',%20'tt0499549'):%20%3CMovie%20u'Avatar'%20(2009)%3E,%20('imdb',%20'tt4550098'):%20%3CMovie%20u'Nocturnal%20Animals'%20(2016)%3E,%20('imdb',%20'tt2304933'):%20%3CMovie%20u'The%205th%20Wave'%20(2016)%3E,%20('imdb',%20'tt1618434'):%20%3CMovie%20u'Murder%20Mystery'%20(2019)%3E,%20('imdb',%20'tt1951266'):%20%3CMovie%20u'The%20Hunger%20Games:%20Mockingjay%20-%20Part%202'%20(2015)%3E,%20('imdb',%20'tt1564367'):%20%3CMovie%20u'Just%20Go%20with%20It'%20(2011)%3E,%20('imdb',%20'tt4244998'):%20%3CMovie%20u'Alpha'%20(2018)%3E,%20('imdb',%20'tt5442430'):%20%3CMovie%20u'Life'%20(2017)%3E,%20('imdb',%20'tt1790864'):%20%3CMovie%20u'The%20Maze%20Runner'%20(2014)%3E,%20('imdb',%20'tt1375666'):%20%3CMovie%20u'Inception'%20(2010)%3E,%20('imdb',%20'tt0454921'):%20%3CMovie%20u'The%20Pursuit%20of%20Happyness'%20(2006)%3E,%20('imdb',%20'tt4500922'):%20%3CMovie%20u'Maze%20Runner:%20The%20Death%20Cure'%20(2018)%3E,%20('imdb',%20'tt2848292'):%20%3CMovie%20u'Pitch%20Perfect%202'%20(2015)%3E,%20('imdb',%20'tt1840309'):%20%3CMovie%20u'Divergent'%20(2014)%3E,%20('imdb',%20'tt1630029'):%20%3CMovie%20u'Avatar%202'%20(2022)%3E,%20('imdb',%20'tt1959563'):%20%3CMovie%20u%22The%20Hitman's%20Bodyguard%22%20(2017)%3E,%20('imdb',%20'tt0997152'):%20%3CMovie%20u'The%20Experiment'%20(2010)%3E,%20('imdb',%20'tt1663202'):%20%3CMovie%20u'The%20Revenant'%20(2015)%3E,%20('imdb',%20'tt3576084'):%20%3CMovie%20u'Zero%20Motivation'%20(2014)%3E,%20('imdb',%20'tt3348730'):%20%3CMovie%20u'Jigsaw'%20(2017)%3E,%20('imdb',%20'tt0120815'):%20%3CMovie%20u'Saving%20Private%20Ryan'%20(1998)%3E,%20('imdb',%20'tt0289879'):%20%3CMovie%20u'The%20Butterfly%20Effect'%20(2004)%3E,%20('imdb',%20'tt0451279'):%20%3CMovie%20u'Wonder%20Woman'%20(2017)%3E,%20('imdb',%20'tt5159414'):%20%3CMovie%20u'Escape%20Room'%20(2017)%3E,%20('imdb',%20'tt2704998'):%20%3CMovie%20u'Game%20Night'%20(2018)%3E,%20('imdb',%20'tt2004420'):%20%3CMovie%20u'Neighbors'%20(2014)%3E,%20('imdb',%20'tt0119174'):%20%3CMovie%20u'The%20Game'%20(1997)%3E,%20('imdb',%20'tt0274166'):%20%3CMovie%20u'Johnny%20English'%20(2003)%3E,%20('imdb',%20'tt2226597'):%20%3CMovie%20u'The%20Mountain%20Between%20Us'%20(2017)%3E,%20('imdb',%20'tt0884732'):%20%3CMovie%20u'The%20Wedding%20Ringer'%20(2015)%3E,%20('imdb',%20'tt6921996'):%20%3CMovie%20u'Johnny%20English%20Strikes%20Again'%20(2018)%3E,%20('imdb',%20'tt4052882'):%20%3CMovie%20u'The%20Shallows'%20(2016)%3E,%20('imdb',%20'tt2283362'):%20%3CMovie%20u'Jumanji:%20Welcome%20to%20the%20Jungle'%20(2017)%3E,%20('imdb',%20'tt0437086'):%20%3CMovie%20u'Alita:%20Battle%20Angel'%20(2019)%3E,%20('imdb',%20'tt1029360'):%20%3CMovie%20u'Poltergeist'%20(2015)%3E,%20('imdb',%20'tt0112442'):%20%3CMovie%20u'Bad%20Boys'%20(1995)%3E,%20('imdb',%20'tt1702439'):%20%3CMovie%20u'Safe%20Haven'%20(2013)%3E,%20('imdb',%20'tt2084970'):%20%3CMovie%20u'The%20Imitation%20Game'%20(2014)%3E,%20('imdb',%20'tt4501244'):%20%3CMovie%20u'Why%20Him?'%20(2016)%3E,%20('imdb',%20'tt1392190'):%20%3CMovie%20u'Mad%20Max:%20Fury%20Road'%20(2015)%3E,%20('imdb',%20'tt2531344'):%20%3CMovie%20u'Blockers'%20(2018)%3E,%20('imdb',%20'tt8936646'):%20%3CMovie%20u'Extraction'%20(2020)%3E,%20('imdb',%20'tt4846340'):%20%3CMovie%20u'Hidden%20Figures'%20(2016)%3E,%20('imdb',%20'tt1045658'):%20%3CMovie%20u'Silver%20Linings%20Playbook'%20(2012)%3E,%20('imdb',%20'tt8332922'):%20%3CMovie%20u'A%20Quiet%20Place%20Part%20II'%20(2021)%3E,%20('imdb',%20'tt0493405'):%20%3CMovie%20u'CHiPS'%20(2017)%3E,%20('imdb',%20'tt8228288'):%20%3CMovie%20u'The%20Platform'%20(2019)%3E,%20('imdb',%20'tt1634122'):%20%3CMovie%20u'Johnny%20English%20Reborn'%20(2011)%3E,%20('imdb',%20'tt7349950'):%20%3CMovie%20u'It%20Chapter%20Two'%20(2019)%3E,%20('imdb',%20'tt4481514'):%20%3CMovie%20u'The%20House'%20(2017)%3E,%20('imdb',%20'tt5308322'):%20%3CMovie%20u'Happy%20Death%20Day'%20(2017)%3E,%20('imdb',%20'tt1528854'):%20%3CMovie%20u%22Daddy's%20Home%22%20(2015)%3E,%20('imdb',%20'tt2015381'):%20%3CMovie%20u'Guardians%20of%20the%20Galaxy'%20(2014)%3E,%20('imdb',%20'tt2140479'):%20%3CMovie%20u'The%20Accountant'%20(2016)%3E,%20('imdb',%20'tt1109624'):%20%3CMovie%20u'Paddington'%20(2014)%3E,%20('imdb',%20'tt4160708'):%20%3CMovie%20u%22Don't%20Breathe%22%20(2016)%3E,%20('imdb',%20'tt0290002'):%20%3CMovie%20u'Meet%20the%20Fockers'%20(2004)%3E,%20('imdb',%20'tt3170832'):%20%3CMovie%20u'Room'%20(2015)%3E,%20('imdb',%20'tt3896198'):%20%3CMovie%20u'Guardians%20of%20the%20Galaxy%20Vol.%202'%20(2017)%3E,%20('imdb',%20'tt1723121'):%20%3CMovie%20u%22We're%20the%20Millers%22%20(2013)%3E,%20('imdb',%20'tt0172156'):%20%3CMovie%20u'Bad%20Boys%20II'%20(2003)%3E,%20('imdb',%20'tt1517451'):%20%3CMovie%20u'A%20Star%20Is%20Born'%20(2018)%3E,%20('imdb',%20'tt5013056'):%20%3CMovie%20u'Dunkirk'%20(2017)%3E,%20('imdb',%20'tt2737304'):%20%3CMovie%20u'Bird%20Box'%20(2018)%3E,%20('imdb',%20'tt6850820'):%20%3CMovie%20u'Peppermint'%20(2018)%3E,%20('imdb',%20'tt4765284'):%20%3CMovie%20u'Pitch%20Perfect%203'%20(2017)%3E,%20('imdb',%20'tt2119532'):%20%3CMovie%20u'Hacksaw%20Ridge'%20(2016)%3E,%20('imdb',%20'tt7286456'):%20%3CMovie%20u'Joker'%20(2019)%3E,%20('imdb',%20'tt2543472'):%20%3CMovie%20u'Wonder'%20(2017)%3E,%20('imdb',%20'tt2908446'):%20%3CMovie%20u'Insurgent'%20(2015)%3E,%20('imdb',%20'tt3076658'):%20%3CMovie%20u'Creed'%20(2015)%3E,%20('imdb',%20'tt1951264'):%20%3CMovie%20u'The%20Hunger%20Games:%20Catching%20Fire'%20(2013)%3E,%20('imdb',%20'tt1590193'):%20%3CMovie%20u'The%20Commuter'%20(2018)%3E,%20('imdb',%20'tt7401588'):%20%3CMovie%20u'Instant%20Family'%20(2018)%3E,%20('imdb',%20'tt1386697'):%20%3CMovie%20u'Suicide%20Squad'%20(2016)%3E,%20('imdb',%20'tt4438848'):%20%3CMovie%20u'Neighbors%202:%20Sorority%20Rising'%20(2016)%3E,%20('imdb',%20'tt1670345'):%20%3CMovie%20u'Now%20You%20See%20Me'%20(2013)%3E,%20('imdb',%20'tt2866360'):%20%3CMovie%20u'Coherence'%20(2013)%3E,%20('imdb',%20'tt2911666'):%20%3CMovie%20u'John%20Wick'%20(2014)%3E,%20('imdb',%20'tt2637276'):%20%3CMovie%20u'Ted%202'%20(2015)%3E,%20('imdb',%20'tt1431045'):%20%3CMovie%20u'Deadpool'%20(2016)%3E,%20('imdb',%20'tt1637688'):%20%3CMovie%20u'In%20Time'%20(2011)%3E,%20('imdb',%20'tt3659388'):%20%3CMovie%20u'The%20Martian'%20(2015)%3E,%20('imdb',%20'tt1131748'):%20%3CMovie%20u'Prison%20Break:%20The%20Final%20Break'%20(2009)%3E,%20('imdb',%20'tt1502397'):%20%3CMovie%20u'Bad%20Boys%20for%20Life'%20(2020)%3E,%20('imdb',%20'tt1981128'):%20%3CMovie%20u'Geostorm'%20(2017)%3E,%20('imdb',%20'tt0123755'):%20%3CMovie%20u'Cube'%20(1997)%3E,%20('imdb',%20'tt5463162'):%20%3CMovie%20u'Deadpool%202'%20(2018)%3E,%20('imdb',%20'tt2935510'):%20%3CMovie%20u'Ad%20Astra'%20(2019)%3E,%20('imdb',%20'tt0493464'):%20%3CMovie%20u'Wanted'%20(2008)%3E,%20('imdb',%20'tt0112792'):%20%3CMovie%20u'Dangerous%20Minds'%20(1995)%3E,%20('imdb',%20'tt2788710'):%20%3CMovie%20u'The%20Interview'%20(2014)%3E%7D HTTP/1.1" 400 0

After converting: https://api.trakt.tv:443 "GET /sync/ratings/movies/{('imdb', 'tt0816692'): <Movie u'Interstellar' (2014)>, ('imdb', 'tt1964418'): <Movie u'Tomorrowland' (2015)>, ('imdb', 'tt2126355'): <Movie u'San Andreas' (2015)>, ('imdb', 'tt3276924'): <Movie u'Heist' (2015)>, ('imdb', 'tt6644200'): <Movie u'A Quiet Place' (2018)>, ('imdb', 'tt1187064'): <Movie u'Triangle' (2009)>, ('imdb', 'tt5758778'): <Movie u'Skyscraper' (2018)>, ('imdb', 'tt0212338'): <Movie u'Meet the Parents' (2000)>, ('imdb', 'tt3606756'): <Movie u'Incredibles 2' (2018)>, ('imdb', 'tt5360952'): <Movie u'The Hurricane Heist' (2018)>, ('imdb', 'tt0317705'): <Movie u'The Incredibles' (2004)>, ('imdb', 'tt0106611'): <Movie u'Cool Runnings' (1993)>, ('imdb', 'tt7975244'): <Movie u'Jumanji: The Next Level' (2019)>, ('imdb', 'tt0322589'): <Movie u'Honey' (2003)>, ('imdb', 'tt3401882'): <Movie u'Fist Fight' (2017)>, ('imdb', 'tt6772950'): <Movie u'Truth or Dare' (2018)>, ('imdb', 'tt0109830'): <Movie u'Forrest Gump' (1994)>, ('imdb', 'tt1563742'): <Movie u'Overboard' (2018)>, ('imdb', 'tt4287320'): <Movie u'The Circle' (2017)>, ('imdb', 'tt5657846'): <Movie u"Daddy's Home 2" (2017)>, ('imdb', 'tt0970866'): <Movie u'Little Fockers' (2010)>, ('imdb', 'tt2267998'): <Movie u'Gone Girl' (2014)>, ('imdb', 'tt5116302'): <Movie u'Togo' (2019)>, ('imdb', 'tt0369610'): <Movie u'Jurassic World' (2015)>, ('imdb', 'tt1800246'): <Movie u'That Awkward Moment' (2014)>, ('imdb', 'tt2626350'): <Movie u'Step Up All In' (2014)>, ('imdb', 'tt1711525'): <Movie u'Office Christmas Party' (2016)>, ('imdb', 'tt3110958'): <Movie u'Now You See Me 2' (2016)>, ('imdb', 'tt1179933'): <Movie u'10 Cloverfield Lane' (2016)>, ('imdb', 'tt1392170'): <Movie u'The Hunger Games' (2012)>, ('imdb', 'tt1355644'): <Movie u'Passengers' (2016)>, ('imdb', 'tt0120338'): <Movie u'Titanic' (1997)>, ('imdb', 'tt4425200'): <Movie u'John Wick: Chapter 2' (2017)>, ('imdb', 'tt2543164'): <Movie u'Arrival' (2016)>, ('imdb', 'tt5093026'): <Movie u'Papillon' (2017)>, ('imdb', 'tt10431500'): <Movie u'Miracle in Cell No. 7' (2019)>, ('imdb', 'tt1258197'): <Movie u'Exam' (2009)>, ('imdb', 'tt1396484'): <Movie u'It' (2017)>, ('imdb', 'tt10276470'): <Movie u'Work It' (2020)>, ('imdb', 'tt1727824'): <Movie u'Bohemian Rhapsody' (2018)>, ('imdb', 'tt2057392'): <Movie u'Eye in the Sky' (2015)>, ('imdb', 'tt1981677'): <Movie u'Pitch Perfect' (2012)>, ('imdb', 'tt3410834'): <Movie u'Allegiant' (2016)>, ('imdb', 'tt4881806'): <Movie u'Jurassic World: Fallen Kingdom' (2018)>, ('imdb', 'tt3741834'): <Movie u'Lion' (2016)>, ('imdb', 'tt1390411'): <Movie u'In the Heart of the Sea' (2015)>, ('imdb', 'tt1951265'): <Movie u'The Hunger Games: Mockingjay - Part 1' (2014)>, ('imdb', 'tt6306064'): <Movie u'Adrift' (2018)>, ('imdb', 'tt1911644'): <Movie u'The Call' (2013)>, ('imdb', 'tt4468740'): <Movie u'Paddington 2' (2017)>, ('imdb', 'tt1781922'): <Movie u'No Escape' (2015)>, ('imdb', 'tt2096673'): <Movie u'Inside Out' (2015)>, ('imdb', 'tt1677720'): <Movie u'Ready Player One' (2018)>, ('imdb', 'tt4046784'): <Movie u'Maze Runner: The Scorch Trials' (2015)>, ('imdb', 'tt2713180'): <Movie u'Fury' (2014)>, ('imdb', 'tt8368406'): <Movie u'Vivarium' (2019)>, ('imdb', 'tt1477834'): <Movie u'Aquaman' (2018)>, ('imdb', 'tt2872732'): <Movie u'Lucy' (2014)>, ('imdb', 'tt3531824'): <Movie u'Nerve' (2016)>, ('imdb', 'tt0223897'): <Movie u'Pay It Forward' (2000)>, ('imdb', 'tt5848272'): <Movie u'Ralph Breaks the Internet' (2018)>, ('imdb', 'tt6343314'): <Movie u'Creed II' (2018)>, ('imdb', 'tt8579674'): <Movie u'1917' (2019)>, ('imdb', 'tt1458169'): <Movie u'Kidnap' (2017)>, ('imdb', 'tt0114898'): <Movie u'Waterworld' (1995)>, ('imdb', 'tt9059704'): <Movie u'An American Pickle' (2020)>, ('imdb', 'tt2139881'): <Movie u'Long Shot' (2019)>, ('imdb', 'tt3553976'): <Movie u'Captain Fantastic' (2016)>, ('imdb', 'tt0097523'): <Movie u'Honey, I Shrunk the Kids' (1989)>, ('imdb', 'tt0499549'): <Movie u'Avatar' (2009)>, ('imdb', 'tt4550098'): <Movie u'Nocturnal Animals' (2016)>, ('imdb', 'tt2304933'): <Movie u'The 5th Wave' (2016)>, ('imdb', 'tt1618434'): <Movie u'Murder Mystery' (2019)>, ('imdb', 'tt1951266'): <Movie u'The Hunger Games: Mockingjay - Part 2' (2015)>, ('imdb', 'tt1564367'): <Movie u'Just Go with It' (2011)>, ('imdb', 'tt4244998'): <Movie u'Alpha' (2018)>, ('imdb', 'tt5442430'): <Movie u'Life' (2017)>, ('imdb', 'tt1790864'): <Movie u'The Maze Runner' (2014)>, ('imdb', 'tt1375666'): <Movie u'Inception' (2010)>, ('imdb', 'tt0454921'): <Movie u'The Pursuit of Happyness' (2006)>, ('imdb', 'tt4500922'): <Movie u'Maze Runner: The Death Cure' (2018)>, ('imdb', 'tt2848292'): <Movie u'Pitch Perfect 2' (2015)>, ('imdb', 'tt1840309'): <Movie u'Divergent' (2014)>, ('imdb', 'tt1630029'): <Movie u'Avatar 2' (2022)>, ('imdb', 'tt1959563'): <Movie u"The Hitman's Bodyguard" (2017)>, ('imdb', 'tt0997152'): <Movie u'The Experiment' (2010)>, ('imdb', 'tt1663202'): <Movie u'The Revenant' (2015)>, ('imdb', 'tt3576084'): <Movie u'Zero Motivation' (2014)>, ('imdb', 'tt3348730'): <Movie u'Jigsaw' (2017)>, ('imdb', 'tt0120815'): <Movie u'Saving Private Ryan' (1998)>, ('imdb', 'tt0289879'): <Movie u'The Butterfly Effect' (2004)>, ('imdb', 'tt0451279'): <Movie u'Wonder Woman' (2017)>, ('imdb', 'tt5159414'): <Movie u'Escape Room' (2017)>, ('imdb', 'tt2704998'): <Movie u'Game Night' (2018)>, ('imdb', 'tt2004420'): <Movie u'Neighbors' (2014)>, ('imdb', 'tt0119174'): <Movie u'The Game' (1997)>, ('imdb', 'tt0274166'): <Movie u'Johnny English' (2003)>, ('imdb', 'tt2226597'): <Movie u'The Mountain Between Us' (2017)>, ('imdb', 'tt0884732'): <Movie u'The Wedding Ringer' (2015)>, ('imdb', 'tt6921996'): <Movie u'Johnny English Strikes Again' (2018)>, ('imdb', 'tt4052882'): <Movie u'The Shallows' (2016)>, ('imdb', 'tt2283362'): <Movie u'Jumanji: Welcome to the Jungle' (2017)>, ('imdb', 'tt0437086'): <Movie u'Alita: Battle Angel' (2019)>, ('imdb', 'tt1029360'): <Movie u'Poltergeist' (2015)>, ('imdb', 'tt0112442'): <Movie u'Bad Boys' (1995)>, ('imdb', 'tt1702439'): <Movie u'Safe Haven' (2013)>, ('imdb', 'tt2084970'): <Movie u'The Imitation Game' (2014)>, ('imdb', 'tt4501244'): <Movie u'Why Him?' (2016)>, ('imdb', 'tt1392190'): <Movie u'Mad Max: Fury Road' (2015)>, ('imdb', 'tt2531344'): <Movie u'Blockers' (2018)>, ('imdb', 'tt8936646'): <Movie u'Extraction' (2020)>, ('imdb', 'tt4846340'): <Movie u'Hidden Figures' (2016)>, ('imdb', 'tt1045658'): <Movie u'Silver Linings Playbook' (2012)>, ('imdb', 'tt8332922'): <Movie u'A Quiet Place Part II' (2021)>, ('imdb', 'tt0493405'): <Movie u'CHiPS' (2017)>, ('imdb', 'tt8228288'): <Movie u'The Platform' (2019)>, ('imdb', 'tt1634122'): <Movie u'Johnny English Reborn' (2011)>, ('imdb', 'tt7349950'): <Movie u'It Chapter Two' (2019)>, ('imdb', 'tt4481514'): <Movie u'The House' (2017)>, ('imdb', 'tt5308322'): <Movie u'Happy Death Day' (2017)>, ('imdb', 'tt1528854'): <Movie u"Daddy's Home" (2015)>, ('imdb', 'tt2015381'): <Movie u'Guardians of the Galaxy' (2014)>, ('imdb', 'tt2140479'): <Movie u'The Accountant' (2016)>, ('imdb', 'tt1109624'): <Movie u'Paddington' (2014)>, ('imdb', 'tt4160708'): <Movie u"Don't Breathe" (2016)>, ('imdb', 'tt0290002'): <Movie u'Meet the Fockers' (2004)>, ('imdb', 'tt3170832'): <Movie u'Room' (2015)>, ('imdb', 'tt3896198'): <Movie u'Guardians of the Galaxy Vol. 2' (2017)>, ('imdb', 'tt1723121'): <Movie u"We're the Millers" (2013)>, ('imdb', 'tt0172156'): <Movie u'Bad Boys II' (2003)>, ('imdb', 'tt1517451'): <Movie u'A Star Is Born' (2018)>, ('imdb', 'tt5013056'): <Movie u'Dunkirk' (2017)>, ('imdb', 'tt2737304'): <Movie u'Bird Box' (2018)>, ('imdb', 'tt6850820'): <Movie u'Peppermint' (2018)>, ('imdb', 'tt4765284'): <Movie u'Pitch Perfect 3' (2017)>, ('imdb', 'tt2119532'): <Movie u'Hacksaw Ridge' (2016)>, ('imdb', 'tt7286456'): <Movie u'Joker' (2019)>, ('imdb', 'tt2543472'): <Movie u'Wonder' (2017)>, ('imdb', 'tt2908446'): <Movie u'Insurgent' (2015)>, ('imdb', 'tt3076658'): <Movie u'Creed' (2015)>, ('imdb', 'tt1951264'): <Movie u'The Hunger Games: Catching Fire' (2013)>, ('imdb', 'tt1590193'): <Movie u'The Commuter' (2018)>, ('imdb', 'tt7401588'): <Movie u'Instant Family' (2018)>, ('imdb', 'tt1386697'): <Movie u'Suicide Squad' (2016)>, ('imdb', 'tt4438848'): <Movie u'Neighbors 2: Sorority Rising' (2016)>, ('imdb', 'tt1670345'): <Movie u'Now You See Me' (2013)>, ('imdb', 'tt2866360'): <Movie u'Coherence' (2013)>, ('imdb', 'tt2911666'): <Movie u'John Wick' (2014)>, ('imdb', 'tt2637276'): <Movie u'Ted 2' (2015)>, ('imdb', 'tt1431045'): <Movie u'Deadpool' (2016)>, ('imdb', 'tt1637688'): <Movie u'In Time' (2011)>, ('imdb', 'tt3659388'): <Movie u'The Martian' (2015)>, ('imdb', 'tt1131748'): <Movie u'Prison Break: The Final Break' (2009)>, ('imdb', 'tt1502397'): <Movie u'Bad Boys for Life' (2020)>, ('imdb', 'tt1981128'): <Movie u'Geostorm' (2017)>, ('imdb', 'tt0123755'): <Movie u'Cube' (1997)>, ('imdb', 'tt5463162'): <Movie u'Deadpool 2' (2018)>, ('imdb', 'tt2935510'): <Movie u'Ad Astra' (2019)>, ('imdb', 'tt0493464'): <Movie u'Wanted' (2008)>, ('imdb', 'tt0112792'): <Movie u'Dangerous Minds' (1995)>, ('imdb', 'tt2788710'): <Movie u'The Interview' (2014)>} HTTP/1.1" 400 0

DEBUG: [script.trakt] resources.lib.syncMovies: [Movies Sync] Error getting Trakt.tv movie list, aborting movie Sync.

Regarding 'Episodes' it seems to be probably ok (but still there isn't a notification the the sync is finished):

DEBUG: [script.trakt] urllib3.connectionpool: https://api.trakt.tv:443 "GET /sync/collection/shows HTTP/1.1" 200 None
DEBUG: [script.trakt] urllib3.connectionpool: https://api.trakt.tv:443 "GET /sync/watched/shows HTTP/1.1" 200 None
DEBUG: [script.trakt] urllib3.connectionpool: https://api.trakt.tv:443 "GET /sync/ratings/shows HTTP/1.1" 200 None
DEBUG: [script.trakt] urllib3.connectionpool: https://api.trakt.tv:443 "GET /sync/ratings/episodes HTTP/1.1" 200 None

DEBUG: [script.trakt] resources.lib.syncEpisodes: [traktAddEpisodes] Finished with 0 error(s) DEBUG: [script.trakt] resources.lib.syncEpisodes: [traktUpdateEpisodes] Finished with 0 error(s)

And also I have this error:

ERROR: Exception in thread trakt-sync:
    Traceback (most recent call last):
        File "C:\Program Files (x86)\Kodi\system\python\Lib\threading.py", line 801, in __bootstrap_inner
                                    self.run()
        File "C:\Users\aUser\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\service.py", line 335, in run
                                    sync.sync()
        File "C:\Users\aUser\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\sync.py", line 65, in sync
                                    syncEpisodes.SyncEpisodes(self, progress)
        File "C:\Users\aUser\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\syncEpisodes.py", line 55, in __init__
                                    self.__syncEpisodeRatings(traktEpisodesRated, kodiShowsCollected, 96, 99)
        File "C:\Users\aUser\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\syncEpisodes.py", line 493, in __syncEpisodeRatings
                                    self.sync.traktapi.addRating(traktShowsToUpdate)
        File "C:\Users\aUser\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\traktapi.py", line 289, in addRating
                                    result = Trakt['sync/ratings'].add(mediaObject)
        File "C:\Users\aUser\AppData\Roaming\Kodi\addons\script.module.trakt\lib\trakt\interfaces\base\__init__.py", line 20, in wrap
                                    return func(*args, **kwargs)
        File "C:\Users\aUser\AppData\Roaming\Kodi\addons\script.module.trakt\lib\trakt\interfaces\sync\core\mixins.py", line 90, in add
                                    'validate_token'
        File "C:\Users\aUser\AppData\Roaming\Kodi\addons\script.module.trakt\lib\trakt\core\http.py", line 188, in post
                                    return self.request('POST', path, params, data, **kwargs)
        File "C:\Users\aUser\AppData\Roaming\Kodi\addons\script.module.trakt\lib\trakt\core\http.py", line 121, in request
                                    return self.send(prepared)
        File "C:\Users\aUser\AppData\Roaming\Kodi\addons\script.module.trakt\lib\trakt\core\http.py", line 142, in send
                                    response = self.session.send(request, timeout=timeout)
        File "C:\Users\aUser\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\sessions.py", line 646, in send
                                    r = adapter.send(request, **kwargs)
        File "C:\Users\aUser\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\adapters.py", line 529, in send
                                    raise ReadTimeout(e, request=request)
     ReadTimeout: HTTPSConnectionPool(host='api.trakt.tv', port=443): Read timed out. (read timeout=24)
razzeee commented 4 years ago

I'm only aware of this, which might cause the error https://twitter.com/trakt/status/1298014221569908737

burekas7 commented 4 years ago

But does it something that happen to others or only to me? Is it a known problem? Maybe something was changed in their API?

razzeee commented 4 years ago

I'm happily using v19 over here, without problems. But I have the dialogs disabled anyway.

burekas7 commented 4 years ago

@Razzeee I saw a very similar issue here that solved: https://github.com/trakt/script.trakt/issues/503

What was the actually solution there? Now I have the version 4.2.0 of trakt.py

Just to mention again, I'm talking here about Kodi 17 so the last version of Trakt Addon is 3.2.0

razzeee commented 4 years ago

I think the fix there was the dependency update of trakt.py

Your right, I did read it as if your running 18.6

burekas7 commented 4 years ago

How can I implement this fix with my version? Can I download the last version and replace some files or specific lines in the code?

(I guess that download the last version and install it manually won't let me install it with Kodi 17.6)

razzeee commented 4 years ago

There is no newer version of trakt.py yet, I just checked.

burekas7 commented 4 years ago

EDIT: I see the PR was related to trakt.py. So I guess I should have this fix already.

burekas7 commented 4 years ago

@Razzeee

Update: First, just to mention again that the issue relates only to Kodi 17.6.

1) When I replace the "traktapi.py" from versiom 3.2.5 to my version 3.2.0 (script.trakt\resources\lib) It fixed the problem with the movies sync, so now I'm getting the notification of "Synchronize Movies - Sync Complete" DEBUG: [script.trakt] urllib3.connectionpool: https://api.trakt.tv:443 "GET /sync/ratings/movies HTTP/1.1" 200 None

2) There is still a problem with the TV Shows Episode sync: I still don't get the notification of "Synchronize TV Episodes - Sync Complete". There is still an error as you can see below. I tried to copy all the python files of these folders (From Kodi 18.6 to my Kodi 17.6) 'script.trakt' 'script.module.trakt' Also verified that 'script.module.requests' is the same version on both Kodis

I think maybe it relates to the fact that my TV Shows titles are not in english, but I'm in doubt, because it,ד worked so far until now.

There is something that is related to the Kodi version, In 18.6 it's ok, but in 17.6 I'm getting this error. Can you tag anyone from Kodi's team that can maybe helps here?

Thanks.

The Error:

ERROR: Exception in thread trakt-sync:
   Traceback (most recent call last):
     File "C:\Program Files (x86)\Kodi\system\python\Lib\threading.py", line 801, in __bootstrap_inner
       self.run()
     File "C:\Users\atzoref\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\service.py", line 335, in run
       self.scanning_video = False
     File "C:\Users\atzoref\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\sync.py", line 65, in sync
       syncEpisodes.SyncEpisodes(self, progress)
     File "C:\Users\atzoref\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\syncEpisodes.py", line 55, in __init__
       self.__syncEpisodeRatings(traktEpisodesRated, kodiShowsCollected, 96, 99)
     File "C:\Users\atzoref\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\syncEpisodes.py", line 493, in __syncEpisodeRatings
       self.sync.traktapi.addRating(traktShowsToUpdate)
     File "C:\Users\atzoref\AppData\Roaming\Kodi\addons\script.trakt\resources\lib\traktapi.py", line 289, in addRating
       with Trakt.configuration.oauth.from_response(self.authorization):
     File "C:\Users\atzoref\AppData\Roaming\Kodi\addons\script.module.trakt\lib\trakt\interfaces\base\__init__.py", line 20, in wrap
       return func(*args, **kwargs)
     File "C:\Users\atzoref\AppData\Roaming\Kodi\addons\script.module.trakt\lib\trakt\interfaces\sync\core\mixins.py", line 90, in add
       'validate_token'
     File "C:\Users\atzoref\AppData\Roaming\Kodi\addons\script.module.trakt\lib\trakt\core\http.py", line 188, in post
       return self.request('POST', path, params, data, **kwargs)
     File "C:\Users\atzoref\AppData\Roaming\Kodi\addons\script.module.trakt\lib\trakt\core\http.py", line 121, in request
       return self.send(prepared)
     File "C:\Users\atzoref\AppData\Roaming\Kodi\addons\script.module.trakt\lib\trakt\core\http.py", line 142, in send
       response = self.session.send(request, timeout=timeout)
     File "C:\Users\atzoref\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\sessions.py", line 646, in send
       r = adapter.send(request, **kwargs)
     File "C:\Users\atzoref\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\adapters.py", line 529, in send
       raise ReadTimeout(e, request=request)
   ReadTimeout: HTTPSConnectionPool(host='api.trakt.tv', port=443): Read timed out. (read timeout=24)
razzeee commented 4 years ago

Seems like a timeout, there's not much kodi can do about that. Has to be network or trakt. Or your having problems with https, but then movies wouldn't work either.

burekas7 commented 4 years ago

@Razzeee I don't know what I did but I set everything back to the original old code and it's working as before :) Strange. I'm trying to figure out what I changed.

By the way a little request: I seems that version 3.2.5 for Leia is good also for Krypton (The sync and rate progress was checked) I just changed the 'xbmc.python' version from 2.26.0 to 2.25.0 in the 'addon.xml' (Because v17 don't use 2.26.0) Made a new zip andAnd it was successfully installed. <import addon="xbmc.python" version="2.25.0"/>

So you can publish a new version also for v17. This version is working for sure.

razzeee commented 4 years ago

I usually don't do that to not cause unnecessary breakage.

burekas7 commented 4 years ago

OK. But if someone will have the same problem as I described here and he use v17. The solution is to download the 3.2.5 version and just change the 'xbmc.python' from 2.26.0 to 2.25.0. Then make a new zip (when the folder name is without the version!) And then install it. It's working and everything is ok with the sync/rating etc.

I'm closing here. Thanks.

razzeee commented 4 years ago

I thought you switched back to the first version after all?

burekas7 commented 4 years ago

As I told I don't know what I did. At the start I just copied parts of the new code from 3.2.5 to mine. It fixed only the Movies sync. But then maybe I copied more parts and somehow it was fixed. So I replace all the code and it also back to work.

Then I restore all the build, because I was thinking it was Trakt issue, but the problem returned. So I tried to take the 3.2.5 version (which has no problems in v18) and tried to install it. I get exception regarding the python verison 2.26.0, so I just changed it to 2.25.0, installed it, and the problem is gone.

burekas7 commented 4 years ago

Update: In order to make 3.2.5 working on v17: 1) In the addon.xml: Change the 'xbmc.python' from 2.26.0 to 2.25.0. 2) In service.py line 375: Change onAVStarted() (v18) to onPlayBackStarted() (v17)

burekas7 commented 3 years ago

The fixed 3.2.5 version for Krypton: https://f2h.io/4fosjl3buxku