Skip to content
This repository

DSL Overview

add_titles('Title')

Adds a title to search for

titles

Returns a list of titles you wish to search for

add_feed('http://url.to.rss.feed')

Add a feed that will be downloaded and parsed

feeds

Returns all of the feeds

options

Returns the options hash

log.info 'Message'
log.error 'Message'

Returns a logger object that you can use to display error messages to the log

download(url, http_headers = {})

Download the torrent from the URL, and queue it up for download. You can pass a Hash of http headers if required.

filter do |item|
  item.title    #The title from the feed
  item.url     # Usually the link to the torrent
end

Called for each item that is in the RSS feed.

parse_metadata(item)

Attempts to parse out season and episode information out of the RSS item. Returns a Hash:

{
  :title => 'Name of the Show',
  :series => Series Number,
  :episode => Episode Number,
  :size => Size of download,
  :publish_date => Date the torrent was published
  :high_def => true if the parser thinks the show is in High Definition
}
Something went wrong with that request. Please try again.