Skip to content

Juuro/ratings-imdb-to-trakt

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

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

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

About

This script imports IMDb ratings to trakt.tv.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages