Kodi Community Forum

Full Version: [RELEASE] Trakt Utilities (addon for Trakt.tv usage)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
frieten Wrote:having some issues on ATV2 with eden beta.

seems to be working but getting tons of these in my log:

Code:
NOTICE: Trakt Utilities: [Notification Service] Telnet too soon? (61) Connection refused

tried searching without much success about what could be causing this.

any help would be appreciated.
Yeah, we have been trying to find the cause of this for a while, but not with much success so far.
There are some steps we can try I'll try to track them down for you.

Edit: I have started to collate the info here

frieten Wrote:also it doesn't seem to be scrobbling, it just says MANUALLY MARKED SEEN in traxt on the website as you can see if you click my sig. it seems to be updating ok and searching thru my SQL database and finding everything, but scrobble doesn't work.

i'm fairly sure that the error i am seeing is to do with it trying to scrobble.
Are you certain that scrobbling is enable in TUs settings? If it is post a link to a copy of your XBMC log (with debugging turned on in TU)
othrayte Wrote:Yeah, we have been trying to find the cause of this for a while, but not with much success so far.
There are some steps we can try I'll try to track them down for you.

Edit: I have started to collate the info here


Are you certain that scrobbling is enable in TUs settings? If it is post a link to a copy of your XBMC log (with debugging turned on in TU)

yeah its turned on, i think it could just be timing out due to isp congestion, being slow at this time of night

Code:
18:44:52 T:136019968  NOTICE: Trakt Utilities: trakt json url: /show/watching/48dfcb4813134da82152984e8c4f329bc8b8b46a
18:45:00 T:136019968  NOTICE: Trakt Utilities: [Scrobbler] Watch responce: {u'status': u'success', u'episode': {u'number': 47, u'title': u'The Doctor, the Widow and the Wardrobe'}, u'show': {u'tvdb_id': u'78804', u'year': u'2005', u'imdb_id': u'tt0436992', u'title': u'Doctor Who (2005)'}, u'season': 0, u'twitter': False, u'tumblr': False, u'facebook': False, u'message': u'watching Doctor Who (2005) 0x47'}
18:53:19 T:148140032  NOTICE: Trakt Utilities: [Scrobbler] Pinging watching {u'type': u'episode', u'id': 9229}
18:53:23 T:148140032  NOTICE: Trakt Utilities: trakt json url: /show/watching/48dfcb4813134da82152984e8c4f329bc8b8b46a
18:53:28 T:148140032  NOTICE: Trakt Utilities: [Scrobbler] Watch responce: {u'status': u'success', u'episode': {u'number': 47, u'title': u'The Doctor, the Widow and the Wardrobe'}, u'show': {u'tvdb_id': u'78804', u'year': u'2005', u'imdb_id': u'tt0436992', u'title': u'Doctor Who (2005)'}, u'season': 0, u'twitter': False, u'tumblr': False, u'facebook': False, u'message': u'watching Doctor Who (2005) 0x47'}
19:01:48 T:148140032  NOTICE: Trakt Utilities: [Scrobbler] Pinging watching {u'type': u'episode', u'id': 9229}
19:01:51 T:148140032  NOTICE: Trakt Utilities: trakt json url: /show/watching/48dfcb4813134da82152984e8c4f329bc8b8b46a
19:01:53 T:148140032  NOTICE: Trakt Utilities: traktQuery: Bad JSON responce: <html><body><h1>503 Service Unavailable</h1>
                                            No server is available to handle this request.
                                            </body></html>
19:01:53 T:148140032  NOTICE: Trakt Utilities: Error in request from 'watchingEpisodeOnTrakt()'
19:07:02 T:152018944 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
19:07:03 T:151486464 WARNING: CDVDMessageQueue(video)::Get - asked for new data packet, with nothing available
19:07:03 T:138711040  NOTICE: CDVDPlayer::OnExit()
19:07:03 T:138711040  NOTICE: DVDPlayer: eof, waiting for queues to empty
19:07:03 T:138711040  NOTICE: DVDPlayer: closing audio stream
19:07:03 T:138711040  NOTICE: Closing audio stream
19:07:03 T:138711040  NOTICE: CDVDMessageQueue(audio)::WaitUntilEmpty
19:07:03 T:138711040  NOTICE: Waiting for audio thread to exit
19:07:03 T:152018944  NOTICE: thread end: CDVDPlayerAudio::OnExit()
19:07:03 T:138711040  NOTICE: Closing audio device
19:07:03 T:138711040  NOTICE: Deleting audio codec
19:07:03 T:138711040  NOTICE: DVDPlayer: closing video stream
19:07:03 T:138711040  NOTICE: Closing video stream
19:07:03 T:138711040  NOTICE: CDVDMessageQueue(video)::WaitUntilEmpty
19:07:03 T:138711040  NOTICE: waiting for video thread to exit
19:07:03 T:151486464   ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true
19:07:03 T:151486464  NOTICE: thread end: video_thread
19:07:03 T:138711040  NOTICE: deleting video codec
19:07:03 T:138711040  NOTICE: CDVDPlayer::OnExit() deleting demuxer
19:07:03 T:138711040  NOTICE: CDVDPlayer::OnExit() deleting input stream
19:07:03 T:136019968  NOTICE: Trakt Utilities: [Notification Service] message: {"jsonrpc":"2.0","method":"Player.OnStop","params":{"data":null,"sender":"xbmc"}}
19:07:04 T:805244928 WARNING: GetLabel - Unknown nodetype requested 12
19:07:05 T:805244928  NOTICE: CDVDPlayer::CloseFile()
19:07:05 T:805244928 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
19:07:05 T:805244928  NOTICE: DVDPlayer: waiting for threads to exit
19:07:05 T:805244928  NOTICE: DVDPlayer: finished waiting
19:07:05 T:805244928 WARNING: GetLabel - Unknown nodetype requested 12
19:07:05 T:136019968  NOTICE: Trakt Utilities: trakt json url: /show/scrobble/48dfcb4813134da82152984e8c4f329bc8b8b46a
19:07:07 T:136019968  NOTICE: Trakt Utilities: traktQuery: Bad JSON responce: <html><body><h1>503 Service Unavailable</h1>
                                            No server is available to handle this request.
                                            </body></html>
19:07:07 T:136019968  NOTICE: Trakt Utilities: Error in request from 'scrobbleEpisodeOnTrakt()'
19:07:07 T:136019968  NOTICE: Trakt Utilities: [Notification Service] message: {"jsonrpc":"2.0","method":"VideoLibrary.OnUpdate","params":{"data":{"item":{"id":9229,"type":"episode"},"playcount":1},"sender":"xbmc"}}
19:07:07 T:136019968  NOTICE: Trakt Utilities: [Instant-sync] (episode playcount): {u'season': 0, u'episode': 47, u'episodeid': 9229, u'showtitle': u'Doctor Who (2005)', u'label': u'The Doctor, the Widow and the Wardrobe'}
19:07:09 T:136019968  NOTICE: Trakt Utilities: trakt json url: /show/episode/seen/48dfcb4813134da82152984e8c4f329bc8b8b46a
19:07:12 T:136019968  NOTICE: Trakt Utilities: traktQuery: Bad JSON responce: <html><body><h1>503 Service Unavailable</h1>
                                            No server is available to handle this request.
                                            </body></html>
19:07:12 T:136019968  NOTICE: Trakt Utilities: Error in request from 'setEpisodeSeenOnTrakt()'
19:07:12 T:136019968  NOTICE: Trakt Utilities: [Instant-sync] (episode playcount): responce None

seems to return a 503 service unavailable message.

it obviously shows that im watching it fine (as per my sig) just didn't get to scrobble.

havn't had the previous (61) error message since i turned off the option to rate tv shows and movies from trakt config.

EDIT: nvm seems trakt.tv is actually the issue right now, getting 504 gateway time-out when trying to load the site so will try again in a few hours.

typical for that to happen when im debugging issues LOL
frieten Wrote:yeah its turned on, i think it could just be timing out due to isp congestion, being slow at this time of night

Code:
18:44:52 T:136019968  NOTICE: Trakt Utilities: trakt json url: /show/watching/48dfcb4813134da82152984e8c4f329bc8b8b46a
18:45:00 T:136019968  NOTICE: Trakt Utilities: [Scrobbler] Watch responce: {u'status': u'success', u'episode': {u'number': 47, u'title': u'The Doctor, the Widow and the Wardrobe'}, u'show': {u'tvdb_id': u'78804', u'year': u'2005', u'imdb_id': u'tt0436992', u'title': u'Doctor Who (2005)'}, u'season': 0, u'twitter': False, u'tumblr': False, u'facebook': False, u'message': u'watching Doctor Who (2005) 0x47'}
18:53:19 T:148140032  NOTICE: Trakt Utilities: [Scrobbler] Pinging watching {u'type': u'episode', u'id': 9229}
18:53:23 T:148140032  NOTICE: Trakt Utilities: trakt json url: /show/watching/48dfcb4813134da82152984e8c4f329bc8b8b46a
18:53:28 T:148140032  NOTICE: Trakt Utilities: [Scrobbler] Watch responce: {u'status': u'success', u'episode': {u'number': 47, u'title': u'The Doctor, the Widow and the Wardrobe'}, u'show': {u'tvdb_id': u'78804', u'year': u'2005', u'imdb_id': u'tt0436992', u'title': u'Doctor Who (2005)'}, u'season': 0, u'twitter': False, u'tumblr': False, u'facebook': False, u'message': u'watching Doctor Who (2005) 0x47'}
19:01:48 T:148140032  NOTICE: Trakt Utilities: [Scrobbler] Pinging watching {u'type': u'episode', u'id': 9229}
19:01:51 T:148140032  NOTICE: Trakt Utilities: trakt json url: /show/watching/48dfcb4813134da82152984e8c4f329bc8b8b46a
19:01:53 T:148140032  NOTICE: Trakt Utilities: traktQuery: Bad JSON responce: <html><body><h1>503 Service Unavailable</h1>
                                            No server is available to handle this request.
                                            </body></html>
19:01:53 T:148140032  NOTICE: Trakt Utilities: Error in request from 'watchingEpisodeOnTrakt()'
19:07:02 T:152018944 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
19:07:03 T:151486464 WARNING: CDVDMessageQueue(video)::Get - asked for new data packet, with nothing available
19:07:03 T:138711040  NOTICE: CDVDPlayer::OnExit()
19:07:03 T:138711040  NOTICE: DVDPlayer: eof, waiting for queues to empty
19:07:03 T:138711040  NOTICE: DVDPlayer: closing audio stream
19:07:03 T:138711040  NOTICE: Closing audio stream
19:07:03 T:138711040  NOTICE: CDVDMessageQueue(audio)::WaitUntilEmpty
19:07:03 T:138711040  NOTICE: Waiting for audio thread to exit
19:07:03 T:152018944  NOTICE: thread end: CDVDPlayerAudio::OnExit()
19:07:03 T:138711040  NOTICE: Closing audio device
19:07:03 T:138711040  NOTICE: Deleting audio codec
19:07:03 T:138711040  NOTICE: DVDPlayer: closing video stream
19:07:03 T:138711040  NOTICE: Closing video stream
19:07:03 T:138711040  NOTICE: CDVDMessageQueue(video)::WaitUntilEmpty
19:07:03 T:138711040  NOTICE: waiting for video thread to exit
19:07:03 T:151486464   ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true
19:07:03 T:151486464  NOTICE: thread end: video_thread
19:07:03 T:138711040  NOTICE: deleting video codec
19:07:03 T:138711040  NOTICE: CDVDPlayer::OnExit() deleting demuxer
19:07:03 T:138711040  NOTICE: CDVDPlayer::OnExit() deleting input stream
19:07:03 T:136019968  NOTICE: Trakt Utilities: [Notification Service] message: {"jsonrpc":"2.0","method":"Player.OnStop","params":{"data":null,"sender":"xbmc"}}
19:07:04 T:805244928 WARNING: GetLabel - Unknown nodetype requested 12
19:07:05 T:805244928  NOTICE: CDVDPlayer::CloseFile()
19:07:05 T:805244928 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
19:07:05 T:805244928  NOTICE: DVDPlayer: waiting for threads to exit
19:07:05 T:805244928  NOTICE: DVDPlayer: finished waiting
19:07:05 T:805244928 WARNING: GetLabel - Unknown nodetype requested 12
19:07:05 T:136019968  NOTICE: Trakt Utilities: trakt json url: /show/scrobble/48dfcb4813134da82152984e8c4f329bc8b8b46a
19:07:07 T:136019968  NOTICE: Trakt Utilities: traktQuery: Bad JSON responce: <html><body><h1>503 Service Unavailable</h1>
                                            No server is available to handle this request.
                                            </body></html>
19:07:07 T:136019968  NOTICE: Trakt Utilities: Error in request from 'scrobbleEpisodeOnTrakt()'
19:07:07 T:136019968  NOTICE: Trakt Utilities: [Notification Service] message: {"jsonrpc":"2.0","method":"VideoLibrary.OnUpdate","params":{"data":{"item":{"id":9229,"type":"episode"},"playcount":1},"sender":"xbmc"}}
19:07:07 T:136019968  NOTICE: Trakt Utilities: [Instant-sync] (episode playcount): {u'season': 0, u'episode': 47, u'episodeid': 9229, u'showtitle': u'Doctor Who (2005)', u'label': u'The Doctor, the Widow and the Wardrobe'}
19:07:09 T:136019968  NOTICE: Trakt Utilities: trakt json url: /show/episode/seen/48dfcb4813134da82152984e8c4f329bc8b8b46a
19:07:12 T:136019968  NOTICE: Trakt Utilities: traktQuery: Bad JSON responce: <html><body><h1>503 Service Unavailable</h1>
                                            No server is available to handle this request.
                                            </body></html>
19:07:12 T:136019968  NOTICE: Trakt Utilities: Error in request from 'setEpisodeSeenOnTrakt()'
19:07:12 T:136019968  NOTICE: Trakt Utilities: [Instant-sync] (episode playcount): responce None

seems to return a 503 service unavailable message.

it obviously shows that im watching it fine (as per my sig) just didn't get to scrobble.

havn't had the previous (61) error message since i turned off the option to rate tv shows and movies from trakt config.

EDIT: nvm seems trakt.tv is actually the issue right now, getting 504 gateway time-out when trying to load the site so will try again in a few hours.

typical for that to happen when im debugging issues LOL
Nice to know that is sorted out, I hope it comes good again for you.
othrayte Wrote:Nice to know that is sorted out, I hope it comes good again for you.

nope, trakt is back up but still no scrobbling, it works fine if i run the script to sync seen tv shows from trakt addon it self.

is there a way to just set that up to run every 24hrs?

that would do fine for me i dont need the scrobble feature all that much.
frieten Wrote:nope, trakt is back up but still no scrobbling, it works fine if i run the script to sync seen tv shows from trakt addon it self.

is there a way to just set that up to run every 24hrs?

that would do fine for me i dont need the scrobble feature all that much.
Not really, but I noticed that the error 61 problem was gone in your logs, were you able to fix it? Also from the last logs I can see a problem with the notifications, what method were you using to play the items?

I'm afraid the stop-gap solution is just to manually run the updates, v0.7 will have these kind of periodic updates but we won't be adding them to v0.6.4 (it's an implementation thing).
othrayte Wrote:Mine takes a lot less time to start up,
Your first log:
(You played a movie at 26s)
TU start: 1m 4s
TU ready to receive notifications: 1m 12s

Your second log:
TU start: 1m 9s
TU ready to receive notifications: 1m 14s
(Screensaver enabled at 4m 10s)
(Movie started at 5m 8s)

I am running Eden Beta,
My log (TU version pre-0.7):
TU start: 4s
TU ready to receive notifications: 6s

My log (TU version 0.6.4):
TU start: 5s
TU ready to receive notifications: 11s

My log (TU version 0.6.4) [XBMC debugging on]:
TU start: 5s
TU ready to receive notifications: 9s

So your times are very slow, could you please try with debugging on in TU but off in XBMC encase that is causing problems. Otherwise something is making XBMC delay the start of TU. You could try to disable any other add-ons and try again, but I wasn't able to find from your logs what was taking so long. Unfortunately it isn't TU being slow so I cant do much.

I'm running on a slow ION 330 HTPC with a rather huge collection. Perhaps that's why Smile Don't worry about it too much :p I assume that even if it starts up slowly it'll start scrobbling eventually even if the movie has already started.

Thx for the wonderful plugin. Trakt allows me to centralize what I have watched and still want to watch. Your plugin integrates it with XBMC nicely, so thx :p
SpoBo Wrote:I'm running on a slow ION 330 HTPC with a rather huge collection. Perhaps that's why Smile Don't worry about it too much :p I assume that even if it starts up slowly it'll start scrobbling eventually even if the movie has already started.
Actually no, TU needs to see the start of the movie, but even if it misses that it will see the playcount change and will mark the item as seen, it just won't mark it as scrobbled. If you really want it to scrobble you can wait until TU starts properly, it seemed to be less than 1.5min from your logs.

SpoBo Wrote:Thx for the wonderful plugin. Trakt allows me to centralize what I have watched and still want to watch. Your plugin integrates it with XBMC nicely, so thx :p
We aim to please.
othrayte Wrote:Not really, but I noticed that the error 61 problem was gone in your logs, were you able to fix it? Also from the last logs I can see a problem with the notifications, what method were you using to play the items?

I'm afraid the stop-gap solution is just to manually run the updates, v0.7 will have these kind of periodic updates but we won't be adding them to v0.6.4 (it's an implementation thing).

like i said once i disabled the option to give ratings for tvshows/movies from the plugin config the error 61 went away.

now its just not scrobbling.

im playing the items from library as usual.

guess i'll just update once a week or something until 0.7 is out lol
woot we have success Smile a fully scrobbled episode.

think it might have been me not entering the library fully to watch the shows causing the problem. was going in thru recently added then relised thats actually not fully going into the library. DOH

good pilot btw (luck) i highly recommend it if you havn't seen it yet. looks like its gonna be a good one Smile
Hi there, can u help me please?

I was using XBMC Dharma with Trakt addon and it was working like a charm...

Today i decided to install the new XBMC Eden Beta version...so i did a complet uninstall and started it from the scratches... problem is, I CAN'T get the Trakt addon... btw I´m running XBMC in my Mac Mini ... first I tried to download the zip from the suggested page... got it but then when i tried to install the addon from a zip archive, my XBMC just don't "see" the zip as a valid archive... Then I tried to browser for the addon at the official repository, but I couldn't find it... I don't know what to do to install it... :/

thanks in advance
grauhase Wrote:Hi there, can u help me please?

I was using XBMC Dharma with Trakt addon and it was working like a charm...

Today i decided to install the new XBMC Eden Beta version...so i did a complet uninstall and started it from the scratches... problem is, I CAN'T get the Trakt addon... btw I´m running XBMC in my Mac Mini ... first I tried to download the zip from the suggested page... got it but then when i tried to install the addon from a zip archive, my XBMC just don't "see" the zip as a valid archive... Then I tried to browser for the addon at the official repository, but I couldn't find it... I don't know what to do to install it... :/

thanks in advance
The download link for TU is here, just to make sure your going to the correct place, once you have downloaded it you go to "System" > "Add-ons" > "Install from zip file", then you navigate to the correct place and select the zip file. Is that what you have tried?
othrayte Wrote:The download link for TU is here, just to make sure your going to the correct place, once you have downloaded it you go to "System" > "Add-ons" > "Install from zip file", then you navigate to the correct place and select the zip file. Is that what you have tried?


Hi man!

Thanks for your time trying to help me...

Thats exactly what I tried... my XBMC don't see this zip as a valid file ... i mean i can navigate to the correct place, select the zip file but i CANT hit OK to install from THIS zip! Tried with other zips from other addons and they work... only the Trakt isnt working... :/
One question, somebody has some fanart // Backdrop for Trakt utilities? Would love to see if somebody made something for it.
Guys, too lazy to read the full thread, is there a way to get your full XBMC library added to Trakt, not just scrobbling what's watched?
PogMoThoin Wrote:Guys, too lazy to read the full thread, is there a way to get your full XBMC library added to Trakt, not just scrobbling what's watched?

Um, I think that is on page one, but that is the sync ability, so yes.