[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread:
Post Reply 
[GUIDE] How to use Trakt with YAMJ and get automatic watched files too
04-04-2012, 08:10 PM (This post was last modified: 05-03-2012 09:09 AM by Bazrah.)
Post: #1
How to use Trakt with YAMJ and get automatic watched files too
How to use Trakt with YAMJ and get automatic watched files too

This guide shows how you can join the Trakt.tv community from your pch running YAMJ. Thanks to Omertron and jwaulers for the apps and guides which I've consolidated here.

There are 5 steps:

1. Register on Trakt.tv
2. Use the YAMJ Trakt.tv app to upload your jukebox to Trakt.tv
3. Use PchTrakt to automatically update Trakt.tv when you watch tv shows or movies
4. Get PchTrakt to write a watched file for those tv shows and movies you watched
5. Add the Trakt.tv widget to your forum signature


1. Register on Trakt.tv

Quite simple Smile Go to the website and set up an account. Remember the username and password as you'll need that later


2. Use YAMJ Trakt.tv app to upload your jukebox to Trakt.tv

This app from Omertron uses the CompleteMovies.xml file in your YAMJ jukebox and uploads your collection, including which ones you've watched, directly to Trakt.tv website. This is a one-time use app as pchtrakt will take care of the day-to-day updating.

[Image: Capture-11.jpg]

When you run the application you need to enter your information for the Trakt.tv website. Your password will be encrypted for processing.
You can get your API key from http://trakt.tv/settings/api
You will then need to browse to your jukebox location and select the CompleteMovies.xml.
Once the CompleteMovies.xml file has been selected you need to Process it.
Once the processing has finished, you will need to Process the file to Trakt.tv.


3. Use PchTrakt to automatically update Trakt.tv

This script from jlauwers keeps track of what your watching, and when you reach 90% in a file, it'll post it as watched to the website.

Download link:
PchTrakt

Install notes:
Before installing pchtrakt, you must first install the "local" package with C.S.I

In C.S.I. > File > Install from file > pchtrakt.zip -- First installation can take some time because of the dependencies. (around 3 minutes) Please be patient
With SAMBA or FTP, go to \\your_popcorn_IP\share\Apps\pchtrakt\ and edit pchtrakt.ini to add your trakt login and password. (we are working on a better way to do this)

Then restart pchtrakt.

The ini file looks like this:

PHP Code:
[PCHtrakt]
pch_ip 127.0.0.1
sleep_time 
5
log_file 
pchtrakt.log
ignored_repertory 


[
Trakt]
enable_movie_scrobbling 1
enable_tvshow_scrobbling 
1
login 
Bazrah
password 
password
refresh_time 
15

[BetaSeries]
enable_tvshow_scrobbling 0
login 
your_login
password 
your_password

[YAMJ]
watched 1
watched_path 

watched_with_video 1
ignored_category 
Kids,Disney
path 
= /opt/sybhttpd/localhost.drives/SATA_DISK/Video/Jukebox

Don't change the Pch IP
Enter your Trakt login and password.
The YAMJ section we'll cover next.


4. Get pchtrakt to create a watched file when you reach 90% of a file.

In the YAMJ section of the pchtrakt.ini change watched to 1 and watched_with_video to 1.

You can also add genres you don't want pchtrakt to update to the Trakt.tv website like the kids stuff (or others Wink).

At the moment you need to put the path to the jukebox to, which in my case is the A300 internal drive.


5. Add the Trakt.tv widget to your nmt forum signature

Go to Trakt.tv and pick the widget you like and paste it into your signature


You're now good to go, as PchTrakt will keep updating Trakt.tv automatically with your watched list.

PchTrakt | YAMJ wiki
trakt.tv
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 5 users say Thank You to Bazrah for this post
04-04-2012, 08:34 PM
Post: #2
RE: How to use Trakt with YAMJ and get automatic watched files too
I wanted to add a couple more things to this..

#2: Never run yamj pcktrakt a second time. After you run it once, it's done and delete it.. Smile

Not mentioned:

If you use tools like sickbeard or other post processing, look for a trakt.tv option and set them up to update trakt.tv for you automatically.
Find all posts by this user
Add Thank You Quote this message in a reply
05-03-2012, 08:46 AM
Post: #3
RE: How to use Trakt with YAMJ and get automatic watched files too
Hi Mate,

I tried to install the pchtrakt with CSI, but without any success. First, I can see the hcptrakt 0.4.16 in the "Installed" box, and it is started as well. But whenever I browse into the Apps/pchtrakt folder, I can only see appinfo.json and deamon.sh files but not any .ini files where I could put my account name and password. If I stop and restart the app by the CSI, it deletes itself, and need to install again to the Popcorn A-210. Please let me know, what could be the problem. The YAMJ application copied everything to my account, so the problem is only on the Popcorn Hour.
Find all posts by this user
Add Thank You Quote this message in a reply
05-03-2012, 09:09 AM
Post: #4
RE: How to use Trakt with YAMJ and get automatic watched files too
Did you install the "local" from CSI first?

PchTrakt | YAMJ wiki
trakt.tv
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 2 users say Thank You to Bazrah for this post
05-03-2012, 10:54 AM
Post: #5
RE: How to use Trakt with YAMJ and get automatic watched files too
(05-03-2012 09:09 AM)Bazrah Wrote:  Did you install the "local" from CSI first?

Thanks Bazrah,

I accidentally skipped this step. Now it seems the app started and I could changed the ini file. The only difference is, that originally I had True/False in the ini file, while you mentioned 1. Is it the same for the code, or there were some changes in 4.16 and I should put true in the ini file instead of 1?

Anyhow, I'll try this as it is!

Cheers,
Find all posts by this user
Add Thank You Quote this message in a reply
05-03-2012, 04:21 PM
Post: #6
RE: How to use Trakt with YAMJ and get automatic watched files too
@bazarh thanks for this compile and this how to

i'm wondering if, instead of the jukebox location , watched could be set under movies folder
my parameter is : mjb.watchedLocation = withVideo
and my settings:
PHP Code:
[PCHtrakt]
pch_ip 127.0.0.1
sleep_time 
5
log_file 
pchtrakt.log
ignored_repertory 


[
Trakt]
enable_movie_scrobbling 1
enable_tvshow_scrobbling 
1
login 
my_login
password 
my_password 
refresh_time 
15

[BetaSeries]
enable_tvshow_scrobbling 0
login 
your_login
password 
your_password

[YAMJ]
watched 1
watched_path 
= /opt/sybhttpd/localhost.drives/SATA_DISK/USB/Film
watched_with_video 
1
ignored_category 

path = /opt/sybhttpd/localhost.drives/SATA_DISK/USB/Film 

all my hierarchy movies are under a USB folder which is a symlink under /share/ pointing to my USB disk
Find all posts by this user
Add Thank You Quote this message in a reply
05-04-2012, 08:55 AM (This post was last modified: 05-04-2012 08:56 AM by Bazrah.)
Post: #7
RE: How to use Trakt with YAMJ and get automatic watched files too
I put the watched files with the videos, I don't think you need to add a watched location for this, and my ini looks like this:

PHP Code:
[PCHtrakt]
pch_ip 127.0.0.1
sleep_time 
5
log_file 
pchtrakt.log
ignored_repertory 


[
Trakt]
enable_movie_scrobbling 1
enable_tvshow_scrobbling 
1
login 
Bazrah
password 
xxxxxxx
refresh_time 
15

[BetaSeries]
enable_tvshow_scrobbling 0
login 
your_login
password 
your_password

[YAMJ]
watched 1
watched_path 

watched_with_video 1
ignored_category 
Kids,Disney
path 
= /opt/sybhttpd/localhost.drives/SATA_DISK/Video/Jukebox

Not sure about the symlinks - you'll have to try that out Smile

(05-03-2012 04:21 PM)jluc2808 Wrote:  @bazarh thanks for this compile and this how to

i'm wondering if, instead of the jukebox location , watched could be set under movies folder
my parameter is : mjb.watchedLocation = withVideo
and my settings:
PHP Code:
[PCHtrakt]
pch_ip 127.0.0.1
sleep_time 
5
log_file 
pchtrakt.log
ignored_repertory 


[
Trakt]
enable_movie_scrobbling 1
enable_tvshow_scrobbling 
1
login 
my_login
password 
my_password 
refresh_time 
15

[BetaSeries]
enable_tvshow_scrobbling 0
login 
your_login
password 
your_password

[YAMJ]
watched 1
watched_path 
= /opt/sybhttpd/localhost.drives/SATA_DISK/USB/Film
watched_with_video 
1
ignored_category 

path = /opt/sybhttpd/localhost.drives/SATA_DISK/USB/Film 

all my hierarchy movies are under a USB folder which is a symlink under /share/ pointing to my USB disk

PchTrakt | YAMJ wiki
trakt.tv
Find all posts by this user
Add Thank You Quote this message in a reply
05-04-2012, 11:35 AM
Post: #8
RE: How to use Trakt with YAMJ and get automatic watched files too
ok thanks i will try
Find all posts by this user
Add Thank You Quote this message in a reply
05-07-2012, 12:47 PM
Post: #9
RE: How to use Trakt with YAMJ and get automatic watched files too
Hi,
Can you tell me if there's a way, to put the .wathed files into a separate folder (for example somewhere in the Jukebox) instead of the movie folder?
It messes up the TV series folder with lots of files and I prefer to keep them clean. I use Omerton skin with eZap extension.

I'm not sure if there's a way to use the XML file's watched tag for this purpose with Trakt, instead of writing out these files.

And my last question: Trakt.tv website is updated continuously with the watched episodes of the TV shows, but I can't see the newly added TV shows there. Also there are some badly recognised TV shows, which I cannot delete on the website, nor repair it. (locally they are fine, all the thetvdb and imdb codes are correct in their xml files.)

Sorry for the long post,

Cheers,

ecs
Find all posts by this user
Add Thank You Quote this message in a reply
05-08-2012, 09:21 PM (This post was last modified: 05-08-2012 11:14 PM by merlin110.)
Post: #10
RE: How to use Trakt with YAMJ and get automatic watched files too
In post 1 was written:


Install notes:
Before installing pchtrakt, you must first install the "local" package with C.S.I

In C.S.I. > File > Install from file > pchtrakt.zip -- First installation can take some time because of the dependencies. (around 3 minutes) Please be patient
With SAMBA or FTP, go to \\your_popcorn_IP\share\Apps\pchtrakt\ and edit pchtrakt.ini to add your trakt login and password. (we are working on a better way to do this)

When install pchtrakt.zip....
[Image: unbenannt1die.jpg]

Uploaded with ImageShack.us

...... and connect via filezilla (\\your_popcorn_IP\share\Apps\pchtrakt\) i see only this:
[Image: unbenanntssw.jpg]

Uploaded with ImageShack.us

Uploaded with ImageShack.us


Where is the pchtrakt.ini ?
Find all posts by this user
Add Thank You Quote this message in a reply
05-08-2012, 10:05 PM (This post was last modified: 05-08-2012 10:07 PM by nawo69.)
Post: #11
RE: How to use Trakt with YAMJ and get automatic watched files too
did you install "local" with csi before you installed pchtrakt?
(05-07-2012 12:47 PM)ecs Wrote:  Hi,
Can you tell me if there's a way, to put the .wathed files into a separate folder (for example somewhere in the Jukebox) instead of the movie folder?
It messes up the TV series folder with lots of files and I prefer to keep them clean. I use Omerton skin with eZap extension.

Cheers,

ecs

Yeah i get my watched files created in the Jukebox Watched Folder rather than with Videos these are my settings :-

[YAMJ]
watched = True
watched_path = /opt/sybhttpd/localhost.drives/NETWORK_SHARE/ot/Jukebox/Watched/
watched_with_video = False
ignored_category =
path = /opt/sybhttpd/localhost.drives/NETWORK_SHARE/ot/

trakt.tv
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 2 users say Thank You to nawo69 for this post
05-08-2012, 10:12 PM (This post was last modified: 05-08-2012 10:12 PM by jlauwers.)
Post: #12
RE: How to use Trakt with YAMJ and get automatic watched files too
I can't believe I didn't subscribe to that thread!
Thank for you help guys Smile

[Image: watched-fanart.jpg]
Pchtrakt - Scrobble what you are playing on your popcorn-hour to trakt.tv
Find all posts by this user
Add Thank You Quote this message in a reply
05-09-2012, 02:51 PM
Post: #13
RE: How to use Trakt with YAMJ and get automatic watched files too
(05-08-2012 10:05 PM)nawo69 Wrote:  did you install "local" with csi before you installed pchtrakt?
(05-07-2012 12:47 PM)ecs Wrote:  Hi,
Can you tell me if there's a way, to put the .wathed files into a separate folder (for example somewhere in the Jukebox) instead of the movie folder?
It messes up the TV series folder with lots of files and I prefer to keep them clean. I use Omerton skin with eZap extension.

Cheers,

ecs

Yeah i get my watched files created in the Jukebox Watched Folder rather than with Videos these are my settings :-

[YAMJ]
watched = True
watched_path = /opt/sybhttpd/localhost.drives/NETWORK_SHARE/ot/Jukebox/Watched/
watched_with_video = False
ignored_category =
path = /opt/sybhttpd/localhost.drives/NETWORK_SHARE/ot/

Thanks, I'll give it a try. I had quite a similar settings in my .ini file, but maybe there was a mismatch in the path name. Btw, does Eversion knows somehow, where to look for the watched files, to be able to tag the watched episodes in a TV show?
Or should I put something to the properties file?
Find all posts by this user
Add Thank You Quote this message in a reply
05-09-2012, 03:27 PM
Post: #14
RE: How to use Trakt with YAMJ and get automatic watched files too
YAMJ handles the marking of the shows as watched in the XML files, so you WILL need to re-run to update your jukebox.

Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
05-09-2012, 04:10 PM (This post was last modified: 05-12-2012 11:56 PM by nawo69.)
Post: #15
RE: How to use Trakt with YAMJ and get automatic watched files too
(05-09-2012 02:51 PM)ecs Wrote:  
(05-08-2012 10:05 PM)nawo69 Wrote:  did you install "local" with csi before you installed pchtrakt?
(05-07-2012 12:47 PM)ecs Wrote:  Hi,
Can you tell me if there's a way, to put the .wathed files into a separate folder (for example somewhere in the Jukebox) instead of the movie folder?
It messes up the TV series folder with lots of files and I prefer to keep them clean. I use Omerton skin with eZap extension.

Cheers,

ecs

Yeah i get my watched files created in the Jukebox Watched Folder rather than with Videos these are my settings :-

[YAMJ]
watched = True
watched_path = /opt/sybhttpd/localhost.drives/NETWORK_SHARE/ot/Jukebox/Watched/
watched_with_video = False
ignored_category =
path = /opt/sybhttpd/localhost.drives/NETWORK_SHARE/ot/

Thanks, I'll give it a try. I had quite a similar settings in my .ini file, but maybe there was a mismatch in the path name. Btw, does Eversion knows somehow, where to look for the watched files, to be able to tag the watched episodes in a TV show?
Or should I put something to the properties file?

I created a skin-user.properties with :-

mjb.watchedLocation=withJukebox

The only problem is it doesn't detected watched files with no extension if they are in the jukebox. Thought that will only be a problem if you already have some like that as pchtrakt creates them with extensions EDIT - Fixed in the latest snapshot Smile

trakt.tv
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to nawo69 for this post
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [HTML SKIN] iSkin - YAMJ Skin for iOS, Android, or any device with a web-kit based browser gfb107 1,352 318,112 Today 09:44 PM
Last Post: gfb107
Star [TOOL] Dynamic YAMJ & Music JukeBox server - NMTServer 1.82 released [5 Feb. 2011] ithiel 2,258 843,747 05-05-2013 04:39 AM
Last Post: NeilN1
  [HTML SKIN] ÆON Movie Wall YAMJ *UPDATE* May 9, 2010 - Clean Up #4 ejp 8,798 2,211,587 05-01-2013 05:49 PM
Last Post: h3dman
  [TOOL] [TOMY] Windows YAMJ GUI Configuration Tool and Utility Auggie 244 65,559 04-17-2013 02:54 PM
Last Post: djhifi
Star [TOOL] YAYMan (Yet Another Yamj Manager) v0.99.99.25 nordin 1,439 404,422 04-17-2013 04:20 AM
Last Post: randallspicher
  [GUIDE] YAMJ and the 200s, 300s, 400s, Popbox, Asiabox and Tablets/Mobile. accident 8 11,020 04-12-2013 11:00 AM
Last Post: Omertron
  [GUIDE] Run YAMJ directly from Synology NAS - 411J - A300 melonboy 41 9,116 03-17-2013 03:56 AM
Last Post: PnoT
  [TOOL] [TOMY] The Only Mac YAMJ GUI Configuration Tool and Utility Auggie 804 195,015 03-11-2013 02:14 AM
Last Post: wgstarks
  [TOOL] YAMJ Trakt.tv App Omertron 20 5,482 02-27-2013 12:30 PM
Last Post: Wally73
Information [GUIDE] Configuring and running multiple jukeboxes from a single YAMJ installation Omertron 0 595 02-21-2013 11:49 AM
Last Post: Omertron

Forum Jump: