Torrent Search
constructor(httpClient: HttpClient = HttpClient(), enableDefaultProviders: Boolean = true, providers: List<TorrentProvider> = emptyList(), providerCache: TorrentProviderCache? = null, userAgent: String = USER_AGENT, dispatcher: CoroutineDispatcher = Dispatchers.Default)
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.
user Agent
An optional User Agent string to use for all requests.
dispatcher
The coroutine dispatcher to process results on, default Dispatchers.Default.