Kodi Community Forum
[RELEASE] trakt.tv tv/movie scrobbler - 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: Service Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=152)
+---- Thread: [RELEASE] trakt.tv tv/movie scrobbler (/showthread.php?tid=138745)



RE: [RELEASE] trakt.tv tv/movie scrobbler - rectifyer - 2013-03-18

2.1.0 is out in the official xbmc repo.


RE: [RELEASE] trakt.tv tv/movie scrobbler - Skank - 2013-03-18

Cool thx mate, gonna try tomorrow !


RE: [RELEASE] trakt.tv tv/movie scrobbler - Frank-NL - 2013-03-18

Very well done, thank you for the efforts! Trakt & XBMC are great Smile


RE: [RELEASE] trakt.tv tv/movie scrobbler - ezechiel1917 - 2013-03-19

I'm coming from old 0.1.5 version... Wink and I'm wondering, how does scrobbler work now?

Now when I watch an episode, it checks scrobble when playback ends, I guess it's normal behaviour now (send scrobble on [trakt] [traktPlayer] onPlayBackEnded() - 0 ), right?
How is watched time being counted? Does it count if you resume a video, prior the resume point to the total watched? Can you skip parts of episode/movie and will that skipped time count towards watched or does it count only real watched time?

I have set to rate episode/movie after 100% and from debug log:NOTICE: [trakt] [Rating] 'episode' does not meet minimum view time for rating (watched: 99.72%, minimum: 100.00%)
I didn't skip anything, so I guess 100% check isn't realiable and I can change it lower value when I understand how does watched time being calculated.
Is rate dialogue displayed also onPlayBackEnded? So I can set lower value and not to be distracted by this dialogue when media playback is still in progress.

Many thanks for explanation and thanks to everyone who participated in creation of this script.


RE: [RELEASE] trakt.tv tv/movie scrobbler - rectifyer - 2013-03-19

0.1.5, wow!

It can handle starts and pauses of the video. If your scrobble threshold is it 80% and you stop the item before that, it won't scrobble. Once it hits 80% of the runtime, it will scrobble once you hit stop or the item ends playback. It will use the correct runtime when calculating your time spent watching on your personal charts page.

For rating, I'd set it lower than 100%. It works in a similar way, it would only popup the rating dialog if you watched 80% of the item. It only shows up after the item is done playing or you stop it past that threshold, it won't interrupt while you are actually watching it.


RE: [RELEASE] trakt.tv tv/movie scrobbler - N3MIS15 - 2013-03-19

Nothing will popup during playback. It waits until playback stops then compares the timestamp against percentage.
I believe its the same for scrobbler


RE: [RELEASE] trakt.tv tv/movie scrobbler - ezechiel1917 - 2013-03-19

Thank you both Smile So basically I don't have to care about pauses/ff/rw and starting from resume points because all it matters is actual position in video when I stop it manually, then there is the other case of automatic playback end when it will scrobble all the time. Really cool ! =)


RE: [RELEASE] trakt.tv tv/movie scrobbler - Reginald - 2013-03-19

Great release! Thank you all so much for your work.


RE: [RELEASE] trakt.tv tv/movie scrobbler - Lappen71 - 2013-03-21

2.1.0 is broken with FRODO 12.1
Had to go back to 2.0.0


RE: [RELEASE] trakt.tv tv/movie scrobbler - rectifyer - 2013-03-21

(2013-03-21, 01:06)Lappen71 Wrote: 2.1.0 is broken with FRODO 12.1
Had to go back to 2.0.0

Any more details to work with? Log file would help out.


RE: [RELEASE] trakt.tv tv/movie scrobbler - fernandovg - 2013-03-21

Problem with movie sync. If I disable movie sync at settings. The tv-show sync works.

19:41:52 T:2935161920 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.NameError'>
Error Contents: global name 'data' is not defined
Traceback (most recent call last):
File "/home/pi/.xbmc/addons/script.trakt/notification_service.py", line 112, in onDatabaseUpdated
self.action(data)
File "/home/pi/.xbmc/addons/script.trakt/notification_service.py", line 59, in _dispatch
movies.Run()
File "/home/pi/.xbmc/addons/script.trakt/movie_sync.py", line 297, in Run
self.RemoveFromTrakt()
File "/home/pi/.xbmc/addons/script.trakt/movie_sync.py", line 265, in RemoveFromTrakt
self.traktapi.removeMovie(params)
File "/home/pi/.xbmc/addons/script.trakt/traktapi.py", line 402, in removeMovie
return self.removeFromLibrary("movie", data)
NameError: global name 'data' is not defined
-->End of Python script error report<--


RE: [RELEASE] trakt.tv tv/movie scrobbler - nate1280 - 2013-03-21

(2013-03-21, 03:28)fernandovg Wrote: Problem with movie sync. If I disable movie sync at settings. The tv-show sync works.

19:41:52 T:2935161920 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.NameError'>
Error Contents: global name 'data' is not defined
Traceback (most recent call last):
File "/home/pi/.xbmc/addons/script.trakt/notification_service.py", line 112, in onDatabaseUpdated
self.action(data)
File "/home/pi/.xbmc/addons/script.trakt/notification_service.py", line 59, in _dispatch
movies.Run()
File "/home/pi/.xbmc/addons/script.trakt/movie_sync.py", line 297, in Run
self.RemoveFromTrakt()
File "/home/pi/.xbmc/addons/script.trakt/movie_sync.py", line 265, in RemoveFromTrakt
self.traktapi.removeMovie(params)
File "/home/pi/.xbmc/addons/script.trakt/traktapi.py", line 402, in removeMovie
return self.removeFromLibrary("movie", data)
NameError: global name 'data' is not defined
-->End of Python script error report<--

Found the problem, typo on my part, line 400 of traktapi.py, it should be data, not date.


RE: [RELEASE] trakt.tv tv/movie scrobbler - AbRASiON - 2013-03-21

I am also getting the sync_exec.py fault (XBMC, not 12.1) I do have the option enabled to upload my movie titles TO trakt, I suspect it's that? (This is a wild guess)


RE: [RELEASE] trakt.tv tv/movie scrobbler - nate1280 - 2013-03-21

(2013-03-21, 14:28)AbRASiON Wrote: I am also getting the sync_exec.py fault (XBMC, not 12.1) I do have the option enabled to upload my movie titles TO trakt, I suspect it's that? (This is a wild guess)

Post a log, only way to know for sure.


RE: [RELEASE] trakt.tv tv/movie scrobbler - fernandovg - 2013-03-21

(2013-03-21, 14:24)nate1280 Wrote:
(2013-03-21, 03:28)fernandovg Wrote: Problem with movie sync. If I disable movie sync at settings. The tv-show sync works.

19:41:52 T:2935161920 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.NameError'>
Error Contents: global name 'data' is not defined
Traceback (most recent call last):
File "/home/pi/.xbmc/addons/script.trakt/notification_service.py", line 112, in onDatabaseUpdated
self.action(data)
File "/home/pi/.xbmc/addons/script.trakt/notification_service.py", line 59, in _dispatch
movies.Run()
File "/home/pi/.xbmc/addons/script.trakt/movie_sync.py", line 297, in Run
self.RemoveFromTrakt()
File "/home/pi/.xbmc/addons/script.trakt/movie_sync.py", line 265, in RemoveFromTrakt
self.traktapi.removeMovie(params)
File "/home/pi/.xbmc/addons/script.trakt/traktapi.py", line 402, in removeMovie
return self.removeFromLibrary("movie", data)
NameError: global name 'data' is not defined
-->End of Python script error report<--

Found the problem, typo on my part, line 400 of traktapi.py, it should be data, not date.

Should I update manually or a 2.1.1 version Will Be Released?