QBittorrent::Api::Search
The search endpoint group (/api/v2/search/): start/stop/delete search
jobs, poll their status and results, and manage search plugins.
Built on the Client request helpers; construct it with a client:
search = QBittorrent::Api::Search.new(client)
id = search.start("ubuntu") # => 1
search.status(id).first.running? # => true
search.results(id).results.first.file_name
search.stop(id)
search.delete(id)
Constructors
Instance methods
POST search/enablePlugin — enable or disable plugins by names.
POST search/enablePlugin — enable or disable plugins by names.
POST search/installPlugin — install plugins from sources (each a URL
or local path).
POST search/installPlugin — install plugins from sources (each a URL
or local path).
GET search/results — results collected so far for search job id.
limit caps the number of results returned (nil/0 = no limit) and
offset skips that many results (a negative offset counts from the end).
POST search/start — start a new search job, returning its id.
pattern is the search term. plugins selects which plugins to use:
a |-joined list of plugin names, or the special values "all" /
"enabled" (default). category narrows the search to a plugin
category id, or "all" (default).
GET search/status — status of search job id, or of all jobs when
id is nil (the default).
POST search/stop — stop the running search job id (its collected
results remain available until #delete).
POST search/uninstallPlugin — uninstall plugins by names.
POST search/uninstallPlugin — uninstall plugins by names.