Torrent Search
class TorrentSearch(httpClient: HttpClient = HttpClient(), enableDefaultProviders: Boolean = true, providers: List<TorrentProvider> = emptyList(), providerCache: TorrentProviderCache? = null)
Parameters
http Client
The HttpClient to use for TorrentProvider search requests. NOTE: If providing a HttpClient used elsewhere in your app, do not call dispose as this will close your HttpClient
enable Default Providers
When false, the built-in default providers will be disabled. They can be enabled later with enableProvider.
providers
An optional list of custom TorrentProvider implementations.
provider Cache
An optional TorrentProviderCache for caching.
Constructors
Link copied to clipboard
constructor(httpClient: HttpClient = HttpClient(), enableDefaultProviders: Boolean = true, providers: List<TorrentProvider> = emptyList(), providerCache: TorrentProviderCache? = null)
Functions
Link copied to clipboard
Disable the provider name, future queries will not be handled by this provider.
Link copied to clipboard
Returns a list of enabled providers.
Link copied to clipboard
Link copied to clipboard
Returns a list of available TorrentProvider instances.
Link copied to clipboard
Resolve missing details such as the torrent hash/magnetUrl for TorrentDescriptions which require an additional request to obtain.
Link copied to clipboard
Search all enabled providers with the TorrentQuery.