Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

Readme.md

This script imports IMDb ratings to trakt.tv. It supports advanced ratings.

If you unrate a movie on IMDb, the rating on trakt will be removed, too.

##Requirements: Ruby with the following gems:

You need accounts at IMDb and trakt.tv, of course.

##Usage: ruby ratings-imdb-to-trakt.rb trakt-api-key trakt-username trakt-password-in-sha1 imdb-id [nosocial]

If you use "nosocial" as fourth attribute, your ratings won't be send out as social updates to facebook, twitter, and tumblr. This is recommended for the initial ratings-import. The default setting is with social updates.

##Usage as cron: Cron doesn't load your environment files by default. So you have to load it first.

source /path/to/your/environment/files; ruby ratings-imdb-to-trakt.rb trakt-api-key trakt-username trakt-password-in-sha1 imdb-id

You can find you environment files by running:

rvm env --path -- ruby-version[@gemset-name]

Assuming the the project ruby@gmeset is 1.9.2-p290@projectX then calling:

rvm env --path -- 1.9.2-p290@projectX

will return:

/Users/juuro/.rvm/environments/ruby-1.9.2-p290

So your command for cron would be:

source /Users/juuro/.rvm/environments/ruby-1.9.2-p290; ruby ratings-imdb-to-trakt.rb trakt-api-key trakt-username trakt-password-in-sha1 imdb-id
You can’t perform that action at this time.