[RELEASE] Trakt.tv (Plugin) TV and Movie Scrobbler Addon

  Thread Rating:
  • 10 Votes - 4.9 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
rudf0rd Offline
trakt.tv admin
Posts: 136
Joined: Aug 2010
Reputation: 34
Location: pdx, or
Thumbs Up  [RELEASE] Trakt.tv (Plugin) TV and Movie Scrobbler Addon
Post: #1
New thread located at http://forum.xbmc.org/showthread.php?tid=138745.

Below is just for historical reference. Any new information or questions should be directed over to the new thread.

= = = = = = = = = = = = = = = = = = = = = = = = =

trakt.tv

trakt helps keep a record of what TV shows and movies you are watching. Based on your favorites, trakt recommends additional shows and movies you'll enjoy!

trakt is a TV show and movie recommendation service. We're different than other sites since we automatically keep a record of what you are watching and don't rely on manual check ins. We are a social platform with a strong community emphasis. Just browse around the site and you'll see how the community drives the content. Everything from trending shows and movies to personal recommendations are directly influenced by the trakt community.

trakt is also a great way to keep a comprehensive history of all tv shows and movies you have watched. Use one of our supported media center plugins and start sending us this data automatically. Once it's setup, we'll keep tracking your history effortlessly in the background. Fill in shows and movies you've watched prior to trakt using the website or API.

Share your trakt profile with your friends and family so they know what you are watching and can easily check out your media library. Even easier, connect your facebook, twitter, and tumblr accounts to have trakt automatically share updates on your behalf. We also provide several widgets that you can use on your forum signature or on your blog. And if that still isn't enough, we provide a very robust API so go nuts and create your own mash ups!

In short, we're last.fm for tv and movies.

In addition to our plugin for dharma+, check out trakt utilities to add more integration for XBMC and trakt (http://forum.xbmc.org/showthread.php?p=767794). If you are waiting for a proper Eden release, there is also the php import script. Check out the instructions here: http://forum.xbmc.org/showthread.php?p=7...post733974

Screenshots and features:
- automated scrobbling from supported media centers
- a sweet API for developers
- user compatibility
- socially based recommendations
- personalized tv calendar
- dynamic forum signature banner
PHP Code:
[img]http://trakt.tv/user/sean/widget[/img] 

and looks like..
[Image: widget]

- show progress
[Image: Screen_shot_2011-05-29_at_11.15.58_PM.png]

[Image: Screen_shot_2011-05-29_at_10.55.34_PM.png]

- user charts
[Image: Screen_shot_2011-04-24_at_10.55.47_PM.png]

- personal "to watch" list (oh look how popular justin is..)
[Image: Screen_shot_2011-03-26_at_2.06.33_AM.png]

- movie/tv trending and stats pages
[Image: Screen_shot_2011-03-20_at_10.39.08_PM.png]

Enjoy guys!

[Image: all-thin-banner.jpg]
(This post was last modified: 2012-08-21 19:31 by rudf0rd.)
find quote
fillidill Offline
Member
Posts: 84
Joined: Oct 2009
Reputation: 0
Post: #2
I tried it and it's feels really polished.
The upcoming recommendations function is something I really look forward to though. Hard to keep up with all the new shows Big Grin

Good job!
find quote
psike Offline
Fan
Posts: 391
Joined: Aug 2008
Reputation: 0
Post: #3
Just tried it.
for some reason I had to change in setting.xml AutoStart to true manually to make it work.
find quote
rudf0rd Offline
trakt.tv admin
Posts: 136
Joined: Aug 2010
Reputation: 34
Location: pdx, or
Post: #4
fillidill: thanks, we've been working on it for the past couple months.

psike: did you manually start it the first time by going to home > programs and pressing enter on it? the first load of the plugin has been the most problematic. after that, it just kinda goes.

thanks for the feedback guys. we appreciate it.

[Image: all-thin-banner.jpg]
find quote
psike Offline
Fan
Posts: 391
Joined: Aug 2008
Reputation: 0
Post: #5
I've tried starting it several times but nothing happened so i took a look at the xml files.
but since then everything works great.
find quote
pieh Offline
Team-Kodi Member
Posts: 672
Joined: Aug 2010
Reputation: 13
Location: Poland
Post: #6
I would like option in settings to disable all notifies or that notify on start "waiting to submit ..."
find quote
rudf0rd Offline
trakt.tv admin
Posts: 136
Joined: Aug 2010
Reputation: 34
Location: pdx, or
Post: #7
good idea about the notification. i'll get that in the next iteration.

[Image: all-thin-banner.jpg]
find quote
psike Offline
Fan
Posts: 391
Joined: Aug 2008
Reputation: 0
Post: #8
1. Again same problem. I turn off the notify after video is submitted but nothing happens.
when opening setting.xml I can see "NotifyOnSubmit" is still true.

2. I've noticed that it take more time to close XBMC when shutting down with this script.

3. about the website, why it's not remember me? I need to log in every time.
find quote
johoja Offline
Fan
Posts: 567
Joined: Aug 2009
Reputation: 0
Post: #9
rudf0rd Wrote:So this is a side project for me and a friend. It tracks your tv usage kinda like last.fm tracks music. We have a basic forum sig widget you can use like this:

PHP Code:
[img]http://trakt.tv/user/sean/widget[/img] 

and looks like..

[Image: widget]

This will show what you're currently watching or what you last watched dynamically.

You can sign up for an account on http://trakt.tv

We're still in beta and are actively developing new features.

Next up is going to be:
- friends
- recommendations
- API

Any suggestions and ideas to help develop this into something awesome for the community would be greatly appreciated. Like I said it is currently in beta and we'll be squashing bugs as they come up. Hope you guys enjoy it.

Pretty cool idea, and cool use of the addons framework Smile
find quote
rudf0rd Offline
trakt.tv admin
Posts: 136
Joined: Aug 2010
Reputation: 34
Location: pdx, or
Post: #10
johoja: thanks, i, admittedly, watch too much tv and have wanted something like this for a while. hopefully others will like it as much as i do.

psike: i noted all your issues. maybe someone can answer this here, but i don't believe the settings.xml actually holds the current values, but just the default values for when the plugin is installed. either way, i'll look into it.

the shut down issue is that xbmc is killing the python script.

[Image: all-thin-banner.jpg]
find quote
ppic Offline
Skilled Python Coder
Posts: 2,711
Joined: Feb 2009
Reputation: 11
Location: France idf
Post: #11
my opinion is instead of a script that run in background, you should do a script that launch itself every XX minutes.

it's easier than keep a backgrounf task.

[Image: widget]
Passion-XBMC Repository Download your SVN skins and addons
TvTunes Addon Download Play your theme while browsing library
TVshow Next Aired display next aired infos from tvrage.com
Logo Downloader Script download Logo/clearart/show thumbs/poster/banner
Bande-Annonce Allociné plugin watch trailers in french and vo
SportLive Script Live score match info in XBMC (not compatible dharma)
find quote
rudf0rd Offline
trakt.tv admin
Posts: 136
Joined: Aug 2010
Reputation: 34
Location: pdx, or
Post: #12
ppic, do you have an example of this i can learn from?

[Image: all-thin-banner.jpg]
find quote
ppic Offline
Skilled Python Coder
Posts: 2,711
Joined: Feb 2009
Reputation: 11
Location: France idf
Post: #13
Code:
def _set_alarm( self ):
        # only run if user/skinner preference
        if self.ALARM == "0": return
        # set the alarms command
        command = "XBMC.RunScript(%s,silent=True&alarm=%d)" % ( os.path.join( os.getcwd(), __file__ ), self.ALARM, )
        xbmc.executebuiltin( "AlarmClock(NextAired,%s,%d,true)" % ( command, self.ALARM, ) )

in fact, you just tell xbmc run this script with this parameters in xx minutes.

[Image: widget]
Passion-XBMC Repository Download your SVN skins and addons
TvTunes Addon Download Play your theme while browsing library
TVshow Next Aired display next aired infos from tvrage.com
Logo Downloader Script download Logo/clearart/show thumbs/poster/banner
Bande-Annonce Allociné plugin watch trailers in french and vo
SportLive Script Live score match info in XBMC (not compatible dharma)
find quote
rudf0rd Offline
trakt.tv admin
Posts: 136
Joined: Aug 2010
Reputation: 34
Location: pdx, or
Post: #14
Hey ppic, I am about to redo the plugin using the alarm clock function.

So the way I understand it, I'll need to pretty much just undo the loop and then at the end of the script, set another alarm to run.

My question is if there is any way to launch the first alarm clock call from the settings menu. Currently the user has to start the trakt plugin from the Program Add-ons section. It would be far more convenient to have it just run once enabled and off when disabled. Does that make sense?

Thanks for the alarm clock function. That was a huge help.

[Image: all-thin-banner.jpg]
find quote
rudf0rd Offline
trakt.tv admin
Posts: 136
Joined: Aug 2010
Reputation: 34
Location: pdx, or
Post: #15
After some trial and error I got this working. Couple problems I ran into was that saving state was a pain (have to know if they've already submitted a 'watching' or 'watched' status) and loading the plugin caused systems with lower horsepower to stutter when the script kicked off.

Switching back to the background process method. Not the best, but it is working smoother.

[Image: all-thin-banner.jpg]
find quote
Post Reply