[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) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
- Rumik - 2011-11-10 That didn't fix it downloaded the version you linked and installed it, but nothing. Tried uninstalling it and reinstalling it, even rebooted, still nothing. Any ideas? http://pastebin.com/K23Purv2 - Lunatixz - 2011-11-10 anyone having problems with this script eating system memory to the point xbmc crashes? System running without script is fine and stable with 2.4Gbram out of 4gb, system running script eats ram till less the 1gb then xbmc crashes... Incorrect username/password - PikeyZA - 2011-11-11 Hi guys, I'm running Trakt Utilities 0.6.4 on my XBMC nightly build from 10/11/2011. At startup I get the message Unknown Username/Password, and any time I try to manually run Trakt Utilities. I have tried all of the most obvious things, resetting my password, creating and trying to log into another trakt account. I've tried logging in with a friends account that works. I've setup port triggering and forwarding on my router, moved the XBMC machine into the DMZ, added someone's previous suggestion of changing the JSON port to 11111 and setting up port forwarding rules for that. Still no joy. I installed the old 0.1.5 version of Trakt and watched 1 episode of a show, it appeared in my Trakt profile correctly, so in theory nothing should be being blocked. I've pasted an excerpt from my log file below that I assume is related to the issue. Is there any known fix for this? Or doesn anyone have a suggestion to the root of the issue? 10:27:30 T:4836 NOTICE: -->Python Interpreter Initialized<-- 10:27:30 T:4836 ERROR: C:\Users\Matthew\AppData\Roaming\XBMC\addons\script.TraktUtilities\nbhttpconnection.py:22: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha 10:27:30 T:4836 NOTICE: Trakt Utilities: default: script.TraktUtilities - version: 0.6.4 10:27:33 T:4836 NOTICE: Trakt Utilities: trakt json url: /account/test/48dfcb4813134da82152984e8c4f329bc8b8b46a 10:27:36 T:4836 NOTICE: Trakt Utilities: traktQuery: Bad JSON responce: Thank in advance for your help - othrayte - 2011-11-12 Rumik Wrote:That didn't fix it downloaded the version you linked and installed it, but nothing. Tried uninstalling it and reinstalling it, even rebooted, still nothing. Any ideas? According to your log file it did fix that first problem, the second problem is to do with the jsonrpc connection closing every 21 seconds, but I'm still trying to determine what would cause that. Any suggestions or other bits of info that might be relevant? - othrayte - 2011-11-12 Lunatixz Wrote:anyone having problems with this script eating system memory to the point xbmc crashes? Can you please provide a copy of xbmcs log file. - othrayte - 2011-11-12 PikeyZA Wrote:Hi guys,What comes after that last line in you log file? That would be the relevant part. - PikeyZA - 2011-11-12 othrayte Wrote:What comes after that last line in you log file? That would be the relevant part. Here's everything after that section: 07:44:14 T:4708 NOTICE: ES: Starting UDP Event server on 0.0.0.0:9777 07:44:14 T:4708 NOTICE: UDP: Listening on port 9777 07:44:14 T:4112 ERROR: C:\Users\Matthew\AppData\Roaming\XBMC\addons\script.TraktUtilities\nbhttpconnection.py:22: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha 07:44:15 T:4112 NOTICE: Trakt Utilities: service: script.TraktUtilities - version: 0.6.4 07:44:15 T:3152 ERROR: CRemoteControl::Connect - failed to connect 07:44:15 T:4112 NOTICE: Trakt Utilities: trakt json url: /account/test/48dfcb4813134da82152984e8c4f329bc8b8b46a 07:44:15 T:372 NOTICE: -->Python Interpreter Initialized<-- 07:44:15 T:1172 NOTICE: -->Python Interpreter Initialized<-- 07:44:16 T:372 NOTICE: StorageServer Module loaded RUN 07:44:16 T:372 NOTICE: StorageClient-0.8 Starting server 07:44:17 T:2812 ERROR: WEATHER: Unable to get data: Invalid License Key. 07:44:20 T:3224 ERROR: Python script "C:\Users\Matthew\AppData\Roaming\XBMC\addons\script.trakt\default.py" does not exist 07:44:21 T:4112 NOTICE: Trakt Utilities: traktQuery: Bad JSON responce: 07:44:21 T:4804 ERROR: XFILE::CDirectory::GetDirectory - Error getting E:\Series\Game of Thrones\ 07:44:22 T:4804 NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:08 07:44:25 T:3224 NOTICE: Storing total System Uptime 07:44:25 T:3224 NOTICE: Saving settings 07:44:25 T:3224 NOTICE: stop all 07:44:25 T:3224 NOTICE: ES: Stopping event server 07:44:25 T:3224 NOTICE: stopping zeroconf publishing 07:44:25 T:4708 NOTICE: ES: UDP Event server stopped 07:44:25 T:3224 NOTICE: stop sap announcement listener 07:44:25 T:3224 NOTICE: clean cached files! 07:44:25 T:3224 NOTICE: unload skin 07:44:25 T:3224 NOTICE: stop python 07:44:25 T:3224 NOTICE: stopped 07:44:25 T:3224 NOTICE: destroy 07:44:25 T:3224 NOTICE: closing down remote control service 07:44:25 T:3224 NOTICE: unload sections 07:44:25 T:3224 NOTICE: destroy 07:44:25 T:3224 WARNING: Attempted to remove window 10013 from the window manager when it didn't exist 07:44:25 T:3224 WARNING: Attempted to remove window 10014 from the window manager when it didn't exist 07:44:25 T:3224 WARNING: Attempted to remove window 10015 from the window manager when it didn't exist 07:44:25 T:3224 WARNING: Attempted to remove window 10016 from the window manager when it didn't exist 07:44:25 T:3224 WARNING: Attempted to remove window 10017 from the window manager when it didn't exist 07:44:25 T:3224 WARNING: Attempted to remove window 10018 from the window manager when it didn't exist 07:44:25 T:3224 WARNING: Attempted to remove window 10019 from the window manager when it didn't exist 07:44:25 T:3224 WARNING: Attempted to remove window 10107 from the window manager when it didn't exist 07:44:25 T:3224 WARNING: Attempted to remove window 10115 from the window manager when it didn't exist 07:44:25 T:3224 WARNING: Attempted to remove window 10104 from the window manager when it didn't exist 07:44:25 T:3224 NOTICE: closing down remote control service 07:44:25 T:3224 NOTICE: unload sections 07:44:25 T:3224 NOTICE: application stopped... That line "script "C:\Users\Matthew\AppData\Roaming\XBMC\addons\script.trakt\default.py" does not exist" has only appeared now since I tried to install a different version of Trakt Utilities and it appears I didn't uninstall the old one properly first. - othrayte - 2011-11-12 PikeyZA Wrote:Here's everything after that section:The response that trakt is returning when TU tries to validate your login details is blank, not sure why. One thing to check is that you are using your trakt username and not your email address. The other thing to make sure is that the computer in question can reach this page, and therefore trakts api. Lastly does this happen every time or only some times? If you can confirm these details then I'll PM you some known working details. PikeyZA Wrote:That line "script "C:\Users\Matthew\AppData\Roaming\XBMC\addons\script.trakt\default.py" does not exist" has only appeared now since I tried to install a different version of Trakt Utilities and it appears I didn't uninstall the old one properly first.That line indicates that you used to have a copy of the official trakt add-on, which is hard to uninstall properly, and has nothing to do with TU; also it just puts that line there and doesn't have any important side affects. - darkvoid - 2011-11-12 othrayte Wrote:The response that trakt is returning when TU tries to validate your login details is blank, not sure why. One thing to check is that you are using your trakt username and not your email address. The other thing to make sure is that the computer in question can reach this page, and therefore trakts api. Lastly does this happen every time or only some times? If you can confirm these details then I'll PM you some known working details. othrayte, just now I ran into the same problem using Trakt Utilities 0.6.4. I modified to code to run through a HTTP debugging proxy and the JSON result is coming back fine. Content-Length header indicates a length of 42 bytes, so there is actual HTTP data in the body. However the raw length read in function traktJsonRequest is 0 bytes. After some debugging it turns out that you are closing the connection before reading the response body. This will always result in a 0 byte read. After I prevented the connection from being closed prematurely everything worked fine. Offending code is in utilities.py, function traktJsonRequest just before reading the response object. - othrayte - 2011-11-12 darkvoid Wrote:othrayte, just now I ran into the same problem using Trakt Utilities 0.6.4.Thanks for looking into that, and when looking back at it that piece of code doesn't make much sense, but I'm not sure why it has just stopped working, what version of xbmc are you guys running? I'll have to push this up and then if you guys can confirm that my changes solve the problem then I'll create a new version of TU and release that. Edit: Ok I have push the fix, the link I had previously provided will now point to this new version, fingers crossed that this is the last of you problems. - darkvoid - 2011-11-12 I am encountering the problem on the AppleTV iOS build. Running "XBMC PRE-11.0 GIT:20111110-26cc297". The latest update you made does clean up some of the logic I saw, but the problem still remains. I've made the necessary changes to utilities.py in order to make Trakt Utilities work on the aforementioned AppleTV build and posted it here: http://pastebin.com/LTTB0dCn (Note the changes are applied from the latest version retrieved just now). - othrayte - 2011-11-12 darkvoid Wrote:I am encountering the problem on the AppleTV iOS build.Huh, again missed that bit, it sure is annoying to make changes at my end and not test it on the relevant hardware. So I think I have taken the important change from the code you linked, if it doesn't work this way I'll probably write the method the same way you have. Same drill as last time. - darkvoid - 2011-11-12 The latest update (commit f8ed553937) works fine on the AppleTV iOS build. Thanks for such a quick update. - johoja - 2011-11-12 I'm having this issue with Trakt Utitilies (results in XBMC freezing) on the latest nightly. https://github.com/Manromen/script.TraktUtilities/issues/101 Anyone know a workaround or how to fix it? - Lunatixz - 2011-11-13 johoja Wrote:I'm having this issue with Trakt Utitilies (results in XBMC freezing) on the latest nightly. i'm having the same problem, debug log shows nothing helpful..ends with a Thread Jobworker 4380 terminating (autodelete). |