def search(page = 0)
      #build URL ex: http://thepiratebay.se/search/cats/0/99/0
      url = Pirata.config[:base_url] + "/search/#{URI.escape(@query)}" + "/#{page.to_s}" + "/#{@sort_type}" + "/#{@category}"
      html = Pirata::Search.parse_html(url)
      Pirata::Search::parse_search_page(html, self)
    end
def search(page = 0)
      #build URL ex: http://thepiratebay.se/search/cats/0/99/0
      url = Pirata.config[:base_url] + "/search/#{URI.escape(@query)}" + "/#{page.to_s}" + "/#{@sort_type}" + "/#{@category}"
      html = Pirata::Search.parse_html(url)
      Pirata::Search::parse_search_page(html, self)
    end
Perform a search and return an array of Torrent objects