class DownloadTV::Downloader
def get_link(torrent, show, save_pending = false)
When it's false it will prompt the user to select the preferred result
based on a set of filters.
When :auto is true it will try to find the best match
Uses a Torrent object to obtain links to the given tv show
#
def get_link(torrent, show, save_pending = false) links = torrent.get_links(show) if links.empty? @config.content[:pending] << show if save_pending return '' end if @config.content[:auto] links = filter_shows(links) links.first[1] else prompt_links(links) get_link_from_user(links) end end