Kodi Community Forum
[RELEASE] Trakt Utilities (addon for Trakt.tv usage) - 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: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] Trakt Utilities (addon for Trakt.tv usage) (/showthread.php?tid=98582)



- othrayte - 2011-07-06

Cometer Wrote:Ok. I found the problem. Trakt.tv allows you to login with eighter the username or email address.
But Trakt Utilities does not evaluate the email. If you put an incorrect username Trakt utilities does give you the message of "incorrect username" but if instead you use a valid email the script trows an error. You might want to adapt the script to both accept usernames and emails.

Thanks for the heads up, I'll look into how we can support this, you (or others) can follow progress at https://github.com/Manromen/script.TraktUtilities/issues/71.


- Koying - 2011-07-08

I'm often seeing this
Code:
19:44:54 T:7156 M:1948721152  NOTICE: Trakt Utilities: traktQuery: Bad JSON responce: <?xml version="1.0" encoding="UTF-8"?>
                                            <Error messageid="-6be89a2b:1310ab0f240:2ff8">
                                                            <reason>An internal error has occurred. Please retry your request.</reason>
                                                        </Error>

Is this a trakt error?


- rflores2323 - 2011-07-10

Does trakt utilities work on latest atv2 with 10.0.9??


- othrayte - 2011-07-10

Koying Wrote:I'm often seeing this
Code:
19:44:54 T:7156 M:1948721152  NOTICE: Trakt Utilities: traktQuery: Bad JSON responce: <?xml version="1.0" encoding="UTF-8"?>
                                            <Error messageid="-6be89a2b:1310ab0f240:2ff8">
                                                            <reason>An internal error has occurred. Please retry your request.</reason>
                                                        </Error>

Is this a trakt error?

It would appear so. I'll pass it on to the trakt devs to confirm.

Also, does this appear often, consistently or rarely?

Sorry for the slow response.


- othrayte - 2011-07-10

rflores2323 Wrote:Does trakt utilities work on latest atv2 with 10.0.9??

I assume by 10.0.9 you mean a Darhma release of XBMC, if so then I'm afraid not. The add-on requires features that are only available in the latest nightly releases, ie PRE-EDEN XBMC. Due to these requirements the first public release of xbmc to be supported will be EDEN, otherwise known as version 11.


- Koying - 2011-07-10

othrayte Wrote:It would appear so. I'll pass it on to the trakt devs to confirm.

Also, does this appear often, consistently or rarely?

Sorry for the slow response.

It seems to happen quite consistently after a
Code:
Trakt Utilities: trakt json url: /movie/library/48dfcb4813134d...

I also have
Code:
21:18:23 T:7124 M:1777823744  NOTICE: Trakt Utilities: trakt json url: /movie/seen/48dfcb4813134d...
21:18:33 T:7124 M:1775439872   ERROR: Error Type: <class 'socket.timeout'>
21:18:33 T:7124 M:1775439872   ERROR: Error Contents: timed out
21:18:33 T:7124 M:1775435776   ERROR: Traceback (most recent call last):
                                              File "D:\XBMC_EDEN\portable_data\addons\script.TraktUtilities\service.py", line 53, in <module>
                                                autostart()
                                              File "D:\XBMC_EDEN\portable_data\addons\script.TraktUtilities\service.py", line 42, in autostart
                                                syncSeenMovies(True)
                                              File "D:\XBMC_EDEN\portable_data\addons\script.TraktUtilities\sync_update.py", line 602, in syncSeenMovies
                                                data = traktJsonRequest('POST', '/movie/seen/%%API_KEY%%', {'movies': movies_seen}, returnStatus = True)
                                              File "D:\XBMC_EDEN\portable_data\addons\script.TraktUtilities\utilities.py", line 157, in traktJsonRequest
                                                response = conn.getresponse()
                                              File "D:\XBMC_EDEN\system\python\Lib\httplib.py", line 990, in getresponse
                                                response.begin()
                                              File "D:\XBMC_EDEN\system\python\Lib\httplib.py", line 391, in begin
                                                version, status, reason = self._read_status()
                                              File "D:\XBMC_EDEN\system\python\Lib\httplib.py", line 349, in _read_status
                                                line = self.fp.readline()
                                              File "D:\XBMC_EDEN\system\python\Lib\socket.py", line 427, in readline
                                                data = recv(1)
                                            timeout: timed out



- rflores2323 - 2011-07-10

othrayte Wrote:I assume by 10.0.9 you mean a Darhma release of XBMC, if so then I'm afraid not. The add-on requires features that are only available in the latest nightly releases, ie PRE-EDEN XBMC. Due to these requirements the first public release of xbmc to be supported will be EDEN, otherwise known as version 11.


Well actaully the latest release 10.0.9 is pre eden.


- othrayte - 2011-07-10

rflores2323 Wrote:Well actaully the latest release 10.0.9 is pre eden.

PRE-EDEN is the name currently given specifically to the nightlies that will become the pre-11 releases, whereas 10 and all versions until pre-11 are still darhma. anyway the addon requires the latest nightlies.


- rflores2323 - 2011-07-11

Ok I tries this on my atv2 10.0.9 and its syncing movies/tv and scrobbling. I however cant get tje rating to work. I have the option checked to rate a movie after 85%. However it doesn't give me am option after I watch the movie. How does this feature work?


- othrayte - 2011-07-11

rflores223 Wrote:Ok I tries this on my atv2 10.0.9 and its syncing movies/tv and scrobbling. I however cant get tje rating to work. I have the option checked to rate a movie after 85%. However it doesn't give me am option after I watch the movie. How does this feature work?

That is very odd, the rating system is called by the scrobbler. Could you please follow the guide here https://github.com/Manromen/script.TraktUtilities/wiki/Getting-support and provide the log.


- rflores2323 - 2011-07-11

Ok I restarted xbmc and its working. Very cool.


- othrayte - 2011-07-11

rflores2323 Wrote:Ok I restarted xbmc and its working. Very cool.

Yeah, I've had some suspicions lately that the settings might not take effect until xbmc, our more precisely the add-on, had been restarted. Up until now I hadn't seen any examples of this happening, I'll go over it again to look for things that might cause thus. Ideally it should only mater that the setting is enabled when the video ends.


- BugZ - 2011-07-11

Love this add-on, much better than the official app.... shame the nightly builds are too unreliable for me to rely on - i will happily reinstall this when a stable version of eden rolls out

kutgw


- Cometer - 2011-07-13

Here's my main problem with Trakt Utilities. The rating window only shows up if you actually wait for the tv show or movie credits to end. If you stop playback the windows isn't triggered. Is it possible to trigger the rating windows when you stop playback?


- othrayte - 2011-07-13

Cometer Wrote:Here's my main problem with Trakt Utilities. The rating window only shows up if you actually wait for the tv show or movie credits to end. If you stop playback the windows isn't triggered. Is it possible to trigger the rating windows when you stop playback?

I'll need some time to see if I can reproduce this. The expected behaviour is that it shows the rating dialogue whenever the item stops and you have watched the required percent of the item.