Skip to content

Instantly share code, notes, and snippets.

@simonszu
Created April 23, 2014 08:25
Show Gist options
  • Save simonszu/11206972 to your computer and use it in GitHub Desktop.
Save simonszu/11206972 to your computer and use it in GitHub Desktop.
Trakt cleaner - Marks a whole show on trakt as unseen
#! /usr/bin/env ruby
require 'trakt'
trakt = Trakt.new
trakt.apikey = 'apikey'
trakt.username = 'simonszu'
trakt.password = 'password'
#puts client.server.time
#p client.show.episode_unseen("imdb_id" => "tt0364845", "episodes" => {"season" => 1, "episode" => 1})
#p trakt.show.episode_unseen("tvdb_id" => "76059", "episodes" => {"season" => 1, "episode" => 1})
p trakt.show.unseen("73255") #house
p trakt.show.unseen("72167") #coldcase
p trakt.show.unseen("75682") #bones
p trakt.show.unseen("83462") #castle
p trakt.show.unseen("74058") #bostonlegal
p trakt.show.unseen("257655") #arrow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment