struct

QBittorrent::Model::SearchResult

Inherits JSON::Serializable < Struct < Value < Object

A single search result (element of SearchResultsResponse#results, see ext/api-map.md §3).

file_size, nb_seeders and nb_leechers are -1 when the engine did not report a value. engine_name is a qB 5.x addition and pub_date is not documented on the wiki but emitted by some engines — both are nilable.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

engine_name

Name of the search engine/plugin that produced the result (qB 5.x addition; nilable to tolerate older builds).

Source
file_name

Display name of the result (torrent title).

Source
file_size

Size in bytes, or -1 when unknown.

Source
file_url

URL to the .torrent/magnet for this result.

Source
nb_leechers

Number of leechers, or -1 when unknown.

Source
nb_seeders

Number of seeders, or -1 when unknown.

Source
pub_date

Publication date as Unix epoch seconds, as reported by the engine (qB 5.x addition, undocumented on the wiki; -1 or nil when unknown).

Source
site_url

URL of the site/page the result came from.

Source