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

  Thread Rating:
  • 10 Votes - 4.9 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
CoinTos Offline
Member
Posts: 87
Joined: Oct 2010
Reputation: 0
Location: Canada
Post: #691
rectifyer Wrote:Let us know what you think and if you come across any issues.

Just a small point, it should read your disliked marked shows of profile so it doesn't recommend shows you all ready marked. So far it's pretty good, it has recommended shows that are in my library that I haven't trakt'ed yet.

Also, all images are missing for both shows "Joey" and "Accidentally On Purpose".

Finally, though this script is great, one bug that I have notice is there is no catch for a failed check-in so the script crashed when my internet was temporary unavailable without notice. What would be better is if it caught the failed report and notified you via popup.

Thanks.

[Image: widget]
XBMC setup: Windows 7 Pro 64bit - ASUS P8H61-M B3, Intel i3-2100 @ 3.1 Ghz, 4GB DDR3-1333, ASUS GT520 Silent, LG 8x BD-ROM, 250GB boot
Retired XBMC setup: XBMC4XBOX - xbox v1.3, softmod, stock
Media server: Debian Linux - Supermicro 2u - Core2 Duo E6400 @ 2.13 Ghz, 2 GB DDR2-667 ECC, 250 GB boot, 7.5TB RAID5 (6 x 1.5tb)
Current backend used: Sickbeard, Couchpotato, Headphones, sabnzb+
find quote
Dannydeman Offline
Senior Member
Posts: 177
Joined: Sep 2008
Reputation: 0
Post: #692
Doesn't work for me. When I start XBMC I get "waiting to submit your media".
I am pretty sure that all my settings are correct. Also, it doesn't matter if I use my nickname or my mail as username, same problem.

20:56:10 T:1100 M:890327040 NOTICE: 'TRAKT: ----------- trakt by Sean Rudford, version 0.1.3 -----------'
20:56:10 T:1100 M:890302464 NOTICE: 'TRAKT: ::Settings::'
20:56:10 T:1100 M:890302464 NOTICE: 'TRAKT: AutoStart: True'
20:56:10 T:1100 M:890302464 NOTICE: 'TRAKT: RunBackground: False'
20:56:10 T:1100 M:890302464 NOTICE: 'TRAKT: Username: XXXX@XXX.COM'
20:56:10 T:1100 M:890302464 NOTICE: 'TRAKT: Password: XXXX'
20:56:10 T:1100 M:890302464 NOTICE: 'TRAKT: AutoSubmitVideo:True'
20:56:10 T:1100 M:890302464 NOTICE: 'TRAKT: VideoThreshold: 85'
20:56:10 T:1100 M:890302464 NOTICE: 'TRAKT: Startup: False'
20:56:10 T:1100 M:890302464 NOTICE: 'TRAKT: ::Settings::'
20:56:10 T:1100 M:890306560 NOTICE: 'TRAKT: Pressed in scripts menu'
20:56:10 T:1100 M:890306560 NOTICE: 'TRAKT: ::AutoStart::True'
20:56:10 T:1100 M:890306560 NOTICE: 'TRAKT: Found Autoexec.py file, checking were there'
20:56:10 T:1100 M:890265600 NOTICE: 'TRAKT: Found our script, no need to do anything'
20:56:10 T:1100 M:890265600 NOTICE: 'TRAKT: ::AutoStart::'
20:56:10 T:1100 M:890265600 NOTICE: 'TRAKT: Entering idle state, waiting for media playing...'
20:56:10 T:1100 M:890257408 NOTICE: 'TRAKT: Resetting last update timestamp'
20:56:11 T:1240 M:890195968 NOTICE: 'TRAKT: Resetting last update timestamp'
20:56:26 T:1240 M:891510784 NOTICE: 'TRAKT: Resetting last update timestamp'
20:56:41 T:1240 M:892977152 NOTICE: 'TRAKT: Resetting last update timestamp'


I hope someone can help me because I really like the idea of this plugin.

EDIT: It seems that the widget itself is working and shows what I am currently watching. But the Library stays empty
(This post was last modified: 2011-02-21 22:01 by Dannydeman.)
find quote
rflores2323 Offline
Posting Freak
Posts: 1,950
Joined: Jan 2009
Reputation: 2
Post: #693
have you guys got a solution for the 2nd profile yet? Its doesnt trakt my kids profile which is a main reason why I wanted this. to be able to see what they are watching and when etc... currently only works in main profile.

Solution: there's an autoexec.py containing:
import time;time.sleep(5);xbmc.executebuiltin("XBMC.RunScript(special://home/addons/script.trakt/default.py,-startup)") in the addon folder. just copy this to your main profile folder and it will start up trakt.

Note to dev.- I think this needs to be automated somehow for other users that are not on the boards etc..

ATV1 with crystalbuntu V1 (11.eden). Theater remote URC MX-810, droidx wtih xbmc remote, or transformer tf101 with YATSE. 2 x ATV2 (V12.0 Eden).

(This post was last modified: 2011-02-21 22:46 by rflores2323.)
find quote
rectifyer Offline
trakt.tv admin
Posts: 392
Joined: Oct 2009
Reputation: 18
Post: #694
@CoinTos I will look into these issues and get back to you soon

@Dannydeman if it shows you are currently watching something then not sure what the issue is? If you are talking about importing your xbmc library, that is not part of the plugin - it is a standalone PHP import script that can do that.

@rflores2323 thanks for the fix. I believe its on the list to look into when we can get to it.

[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
procrastinator Offline
Fan
Posts: 448
Joined: Aug 2008
Reputation: 4
Location: UK
Post: #695
I just spent far too long trying to work out how to add my entire library to my trakt.tv account. I finally got it, and to help out anybody else who's as clueless as me I wrote a quick guide to describe what I did, so hopefully you won't waste as much time as I did.

I'm going to preface it by saying that I wasn't entirely sure of what I was doing, and pieced everything together from what is already in this thread. USE THESE INSTRUCTIONS AT YOUR OWN RISK!!! This is just how I got it working myself. Any references to Mac or Linux have been picked up from this thread, I haven't done this on those platforms myself.

Well, here it is: The total idiot's guide to using the php script to upload your full library to trakt.tv

What you need:
* PHP installed on your computer (see below)
* the trakt-import.php script (available here)

Installing PHP
* For Mac this is easy because it's already installed
* On Linux run the apt-get instruction in this post
* On Windows, download an installer from here. I downloaded "VC9 x86 Thread Safe" version, which worked for me. When it asked me which webserver I'd like to install I went with Apache 2.2.

Setting up the PHP script
* At the top of the script you'll notice a section like this:

Code:
//change these
define('XBMC_USERNAME', 'username');
define('XBMC_PASSWORD', 'password');
define('XBMC_IP', '192.168.0.12');
define('XBMC_PORT', '8080');
define('TRAKT_APIKEY', 'key');
define('TRAKT_USERNAME', 'username');
define('TRAKT_PASSWORD', 'password');

Enter the relevant details by replacing the lower-case text or numbers on the right-hand side.
XBMC_USERNAME and XBMC_PASSWORD are referring to the username and password you have set for accessing the web server. I think the defaults are "xbmc" and "xbmc". You can check, or reset them in the Network settings menu in XBMC. NOTE: THESE ARE CASE SENSITIVE!
XBMC_IP is referring to the IP address of the machine that you are running XBMC on. If you don't know this you can find it out by looking up the system info in XBMC. To find this in the Confluence skin hover over System setting in the main menu and press the right-hand directional button. From the sub-menu that appears select "System info"
XBMC_PORT is referring to the port being used for the XBMC web server - you can also find this under network settings. Default is 8080
TRAKT_APIKEY Find this on the trakt.tv website, NOTE: you must have a trakt.tv account before you can get one of these.
TRAKT_USERNAME and TRAKT_PASSWORD are the username and password that you used to sign up to trakt.tv

Preparing to run the script
* Ensure that XBMC is running
* Ensure that the web server is switched on (Settings > Network > services > Allow control of XBMC via HTTP)
* Move the script to the C:\ drive (at the root level, not in a folder)

Running the script
* Open the command prompt (Windows) or terminal (Linux/Mac)
* run the script by typing
Code:
cd\
php trakt-import.php
(note above code is for Windows, don't know if it differs on Mac or Linux
The trakt-import.php script should run and you should see it picking up what's in your library and uploading it to trakt.tv

If you get a screen with "TV" and "Movies" headers but no other code, then you've probably entered some of the information wrong in the php script.

That's how I did it. Corrections gratefully accepted if you think anything should've been done different
find quote
rflores2323 Offline
Posting Freak
Posts: 1,950
Joined: Jan 2009
Reputation: 2
Post: #696
the Above ^^^^ needs to be posted on the 1st post so poeple know how to do this.

ATV1 with crystalbuntu V1 (11.eden). Theater remote URC MX-810, droidx wtih xbmc remote, or transformer tf101 with YATSE. 2 x ATV2 (V12.0 Eden).

find quote
bmcclure937 Offline
Fan
Posts: 659
Joined: Dec 2010
Reputation: 5
Location: Ohio
Post: #697
What really needs to be done is having this functionality implemented into the actual plug-in. Why it is not there baffles me.

There should be an option in configuration options to run an "initial load" or to scan the whole library. Something along those lines.
find quote
rectifyer Offline
trakt.tv admin
Posts: 392
Joined: Oct 2009
Reputation: 18
Post: #698
@procrastinator that's awesome, thanks for putting that together!

@bmcclure937 it would indeed be cool to have it in the plugin. Unfortunately we have limited time and need to prioritize what we work on and when (for instance personal recommendations > library import Smile ). That is why I got the PHP script out there since it's not that hard to use and better then no import support at all. Updates to import/sync are on the todo list to look into further.

[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
hogfan Offline
Fan
Posts: 380
Joined: Nov 2009
Reputation: 0
Post: #699
When I run the PHP script from terminal, it returns the following:

Code:
========
TV SHOWS
========



======MOVIES======

0 watched movies
0 movies in your library

I have watched items in my library because I am able to see them in XBMC. Any ideas? The same thing happens when I try to run the script directly on my XBMC box.

-hogfan

EDIT: I should mention that I am running the latest stable version of XBMC (Dharma).

[Image: watched-fanart.jpg]
(This post was last modified: 2011-02-24 07:26 by hogfan.)
find quote
rectifyer Offline
trakt.tv admin
Posts: 392
Joined: Oct 2009
Reputation: 18
Post: #700
Are you sure the info in the top of the php script is correct? procrastinator mentioned that seemed to be the case if you were just getting blank info.

[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
Post Reply