Package-level declarations

Types

Link copied to clipboard

A Category representing the content of a torrent, used to filter query results.

Link copied to clipboard
sealed class ProviderResult

A container for the result of a single torrentsearch.TorrentProvider query. ProviderResult is either a Success instance or any number of Error types.

Link copied to clipboard
sealed class ResolveResult

ResolveResult contains details and resolved torrents from a single provider.

Link copied to clipboard
class ResolveResultSet(val results: List<ResolveResult>)

ResolveResultSet is a container for a collection of ProviderResults which simplifies accessing the resolve details across multiple providers.

Link copied to clipboard

Represents a parameter that may be consumed by a torrentsearch.TorrentProvider when executing a query.

Link copied to clipboard

A container for ProviderResults across multiple TorrentProviders. SearchResult eagerly executes the query with each TorrentProvider in providers.

Link copied to clipboard
@Serializable
data class TorrentDescription(val provider: String, val magnetUrl: String?, val title: String, val size: Long, val seeds: Int, val peers: Int, val themoviedbId: Int? = null, val tvdbId: Int? = null, val imdbId: String? = null, val infoUrl: String? = null, val hash: String?)

Represents a torrent listed on a torrentsearch.TorrentProvider. Contains all the provider's latest details for the torrent and a magnetUrl which can be used to download the torrent.

Link copied to clipboard
data class TorrentQuery(var content: String? = null, var category: Category? = null, var imdbId: String? = null, var tmdbId: Int? = null, var tvdbId: Int? = null, val skipCache: Boolean = false, var page: Int = 1, var limit: Int = -1)

TorrentQuery contains all the required details to search for a specific torrent across all enabled providers.