Skip to content

Instantly share code, notes, and snippets.

@simonszu
Created June 16, 2015 17:49
Show Gist options
  • Select an option

  • Save simonszu/6b4409f7ce5b71c644fd to your computer and use it in GitHub Desktop.

Select an option

Save simonszu/6b4409f7ce5b71c644fd to your computer and use it in GitHub Desktop.
Removes a whole show from your trakt account as watched, since the old interface didn't have the option for this
#! /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