[RELEASE] trakt.tv tv/movie scrobbler

  Thread Rating:
  • 7 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
facted Offline
Junior Member
Posts: 39
Joined: Jul 2012
Reputation: 0
Post: #1081
It appears that trakt.tv runs after I run "library auto updater" which cleans my library. However, it does not run when "watchdog" cleans my library. Has anyone else noticed this?

I'd like to run trakt.tv as soon as a program is watched (so that it's synced prior to being moved to another folder). What is the best way to go about this?
find quote
m.savazzi Offline
Moderator
Posts: 854
Joined: Mar 2008
Reputation: 26
Post: #1082
Is there a way to push my library watched status to Trakt.tv in one shot?

If you think I'm useful please use the +/- button to raise my reputation
(This post was last modified: 2014-07-12 12:16 by m.savazzi.)
find quote
Alethenorio Offline
Member
Posts: 66
Joined: May 2010
Reputation: 0
Post: #1083
I have been using the trakt plugin for a while now and noticed that it is sending a "watching" signal to trakt whenever I start watching something. I'd rather it only sends "watched" signals once I am done with an episode/movie.

Is there any way to turn this off so that it only sends "watched" upon reaching the configured percentage and nothing when I start watching the episode/movie?
(This post was last modified: 2014-07-12 14:27 by Alethenorio.)
find quote
Marx1 Offline
Fan
Posts: 303
Joined: Jan 2011
Reputation: 3
Post: #1084
(2014-07-12 12:16)m.savazzi Wrote:  Is there a way to push my library watched status to Trakt.tv in one shot?

Refresh library
find quote
m.savazzi Offline
Moderator
Posts: 854
Joined: Mar 2008
Reputation: 26
Post: #1085
(2014-07-12 15:14)Marx1 Wrote:  
(2014-07-12 12:16)m.savazzi Wrote:  Is there a way to push my library watched status to Trakt.tv in one shot?

Refresh library

Ok,
thanks!

If you think I'm useful please use the +/- button to raise my reputation
find quote
ZexisStryfe Offline
Senior Member
Posts: 186
Joined: Dec 2010
Reputation: 4
Post: #1086
Is there any chance this add-on can pull ratings from Trakt.tv? IE- I rate an episode an 8 after watching. I would like to add a little starburst with my rating of 8 to show up in my skin when that episode is later highlighted in the list. Is this possible?

Check out my new skin- metroTV (XBMC Thread) (Project Site)

[Image: all-thin-banner.jpg]
find quote
ztrust Offline
Member
Posts: 76
Joined: Sep 2013
Reputation: 0
Post: #1087
can I use this to sync my watched status to xbmc from trakt ?
find quote
facted Offline
Junior Member
Posts: 39
Joined: Jul 2012
Reputation: 0
Post: #1088
(2014-07-17 07:07)ztrust Wrote:  can I use this to sync my watched status to xbmc from trakt ?

Yes. It works in both directions.
find quote
rectifyer Offline
trakt.tv admin
Posts: 423
Joined: Oct 2009
Reputation: 18
Post: #1089
Version 2.3.2 of the addon is ready for release and should work on Frodo and Gotham. Before its added to the repo, you can download the zip and install it from https://github.com/trakt/script.trakt/re.../tag/2.3.2

Let me know if you encounter any issues.

[Image: all-thin-banner@2x.jpg]

trakt.tv - Track what you're watching. Discover new shows & movies.
forum thread - @trakt on twitter - support
find quote
distracto Offline
Senior Member
Posts: 169
Joined: Oct 2009
Reputation: 4
Location: North Vancouver
Post: #1090
(2014-07-17 16:14)facted Wrote:  
(2014-07-17 07:07)ztrust Wrote:  can I use this to sync my watched status to xbmc from trakt ?

Yes. It works in both directions.
which one trumps the other in case of disagreements?
find quote
Ben91 Offline
Member
Posts: 57
Joined: Oct 2011
Reputation: 0
Post: #1091
@rectifyer @nate1280 : Tested the last version from https://github.com/trakt/script.trakt/re.../tag/2.3.2

I still have this problem ! Sad

Please take a look to my old posts :

(2014-07-05 21:53)Ben91 Wrote:  Ok guys. So good news.

The bug has been corrected. Now XBMC 13.x (Nightly builds) with an external player and the trakt plugin works but only with TV Shows. (As it was with XBMC 12.x, never worked for movies. So I guess this time it's a trakt issue...)

For more informations : http://forum.xbmc.org/showthread.php?tid=196483

Here are the new logs :

XBMC Logs - External player (working) with a TV Show : http://xbmclogs.com/show.php?id=241517
XBMC Logs - External player (not working) with a movie : http://xbmclogs.com/show.php?id=241519

Here, I extracted some useful informations.

XBMC Logs - External player (working) with a TV Show :
Code:
[trakt] [Scrobbler] playbackStarted(data: {u'type': u'episode', u'id': 1})
[trakt] [Scrobbler] Watching: episode
[trakt] [Scrobbler] watching()
[trakt] [traktAPI] traktRequest(): (0) JSON response: '{u'status': u'success', u'episode': {u'number': 1, u'title': u'12:00 A.M.-1:00 A.M.'}, u'show': {u'tvdb_id': 76290, u'year': 2001, u'imdb_id': u'tt0285331', u'title': u'24'}, u'season': 1, u'twitter': False, u'tumblr': False, u'facebook': False, u'path': False, u'message': u'watching 24 1x01'}'
[trakt] [traktAPI] traktRequest(): JSON request was successful.
[trakt] [Scrobbler] Watch response: {u'status': u'success', u'episode': {u'number': 1, u'title': u'12:00 A.M.-1:00 A.M.'}, u'show': {u'tvdb_id': 76290, u'year': 2001, u'imdb_id': u'tt0285331', u'title': u'24'}, u'season': 1, u'twitter': False, u'tumblr': False, u'facebook': False, u'path': False, u'message': u'watching 24 1x01'}
[trakt] [Scrobbler] playbackEnded()
[trakt] [Scrobbler] watched: 1.0 / 1.0
[trakt] [Scrobbler] scrobble()
[trakt] [traktAPI] traktRequest(): (0) JSON response: '{u'status': u'success', u'episode': {u'number': 1, u'title': u'12:00 A.M.-1:00 A.M.'}, u'show': {u'tvdb_id': 76290, u'year': 2001, u'imdb_id': u'tt0285331', u'title': u'24'}, u'season': 1, u'twitter': False, u'tumblr': False, u'facebook': False, u'path': False, u'message': u'scrobbled 24 1x01'}'
[trakt] [traktAPI] traktRequest(): JSON request was successful.
[trakt] [Scrobbler] Scrobble response: {u'status': u'success', u'episode': {'season': 1, u'number': 1, u'title': u'12:00 A.M.-1:00 A.M.'}, u'show': {u'tvdb_id': 76290, u'year': 2001, u'imdb_id': u'tt0285331', u'title': u'24'}, u'season': 1, u'twitter': False, u'tumblr': False, u'facebook': False, u'path': False, u'message': u'scrobbled 24 1x01'}

XBMC Logs - External player (not working) with a movie :
Code:
[trakt] [Scrobbler] playbackStarted(data: {u'type': u'movie', u'id': 336})
[trakt] [Scrobbler] Watching: movie
[trakt] [Scrobbler] watching()
... Error (5x times, loop) :
[trakt] [traktAPI] traktRequest(): (0) JSON response: '{u'status': u'failure', u'error': u'duration is too short (trailer?)'}'
[trakt] [traktAPI] traktRequest(): (0) JSON Error 'failure' -> 'duration is too short (trailer?)'
... and no "Watch response"
[trakt] [Scrobbler] playbackEnded()
[trakt] [Scrobbler] watched: 1.0 / 1.0
[trakt] [Scrobbler] scrobble()
... Error :
[trakt] [traktAPI] traktRequest(): (0) JSON response: '{u'status': u'failure', u'error': u'duration is too short (trailer?)'}'
[trakt] [traktAPI] traktRequest(): Return on error set, breaking retry.
[trakt] [traktAPI] traktRequest(): Error: duration is too short (trailer?)
... and no "Scrobble response"

Why is there a problem with the duration ? What's wrong guys ?

Thank you for the help.

Cheers.

Thank you.

Cheers.
find quote
xbmosx Offline
Junior Member
Posts: 11
Joined: Jun 2014
Reputation: 0
Post: #1092
(2014-07-17 19:10)rectifyer Wrote:  Version 2.3.2 of the addon is ready for release and should work on Frodo and Gotham. Before its added to the repo, you can download the zip and install it from https://github.com/trakt/script.trakt/re.../tag/2.3.2

Let me know if you encounter any issues.

after a movie the rating dialog appears. the rating also gets through to trakt (checked on webpage). however an error message appears shortly after. after that trakt stays unresponsive. I can't get it to run anymore. clicking the addon in programs does absolutely nothing. in the logs I found following lines:

PHP Code:
19:19:37 T:2959855616   ERROREXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - 
NOTEIGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            
Error Type: <type 'exceptions.KeyError'>
                                            
Error Contents: ('xbmc_id',)
                                            
Traceback (most recent call last):
                                              
File "/Users/Mark/Library/Application Support/XBMC/addons/script.trakt-2.3.2/default.py"line 13in <module>
                                                
traktService().run()
                                              
File "/Users/Mark/Library/Application Support/XBMC/addons/script.trakt-2.3.2/service.py"line 146in run
                                                self
._dispatch(data)
                                              
File "/Users/Mark/Library/Application Support/XBMC/addons/script.trakt-2.3.2/service.py"line 47in _dispatch
                                                self
.scrobbler.playbackEnded()
                                              
File "/Users/Mark/Library/Application Support/XBMC/addons/script.trakt-2.3.2/scrobbler.py"line 218in playbackEnded
                                                ratingCheck
(self.curVideo['type'], self.traktSummaryInfoself.watchedTimeself.videoDurationself.playlistLength)
                                              
File "/Users/Mark/Library/Application Support/XBMC/addons/script.trakt-2.3.2/rating.py"line 25in ratingCheck
                                                rateMedia
(media_typesummary_info)
                                              
File "/Users/Mark/Library/Application Support/XBMC/addons/script.trakt-2.3.2/rating.py"line 119in rateMedia
                                                rateOnTrakt
(ratinggui.media_typegui.media)
                                              
File "/Users/Mark/Library/Application Support/XBMC/addons/script.trakt-2.3.2/rating.py"line 167in rateOnTrakt
                                                id 
media['xbmc_id']
                                            
KeyError: ('xbmc_id',)
                                            -->
End of Python script error report<-- 

when exiting xbmc I also found those line in the log:

PHP Code:
19:23:09 T:2710458792   ERRORCPythonInvoker(1, /Users/Mark/Library/Application Support/XBMC/addons/script.trakt-2.3.2/default.py): script didn't stop in 5 seconds - let's kill it
19
:23:09 T:2959855616 WARNINGCPythonInvoker(1, /Users/Mark/Library/Application Support/XBMC/addons/script.trakt-2.3.2/default.py): the python script "/Users/Mark/Library/Application Support/XBMC/addons/script.trakt-2.3.2/default.py" has left several classes in memory that we couldn't clean up. The classes include: N14PythonBindings30XBMCAddon_xbmc_Player_DirectorE,N14PythonBindings31XBMCA​ddon_xbmc_Monitor_DirectorE 

after a restart of xbmc trakt works normally as expected. any ideas?
(This post was last modified: 2014-07-20 15:01 by xbmosx.)
find quote
Post Reply