def query_str(page = 0)
      str = [SEARCH_PATH, @query.join(' ').gsub(/[^a-z0-9: _-]/i, '')]
      str = [RECENT_PATH] if str[1].empty?
      str << page + 1 if page > 0

      sorts.detect { |k, v| @options[:sort] && k == @options[:sort].intern }.tap do |k, v|
        str << (k ? "?field=#{ v }&sorder=#{ options[:asc] ? 'asc' : 'desc' }" : '')
      end

      str.join '/'
    end
def query_str(page = 0)
      str = [SEARCH_PATH, @query.join(' ').gsub(/[^a-z0-9: _-]/i, '')]
      str = [RECENT_PATH] if str[1].empty?
      str << page + 1 if page > 0

      sorts.detect { |k, v| @options[:sort] && k == @options[:sort].intern }.tap do |k, v|
        str << (k ? "?field=#{ v }&sorder=#{ options[:asc] ? 'asc' : 'desc' }" : '')
      end

      str.join '/'
    end
Create a new +Kat::Search+ object to search Kickass Torrents.
 The search_term can be nil, a string/symbol, or an array of strings/symbols.
 Valid options are in STRING_FIELDS, SELECT_FIELDS or SWITCH_FIELDS.


 Generate a query string from the stored options, supplying an optional page number