TorrentSearch

constructor(httpClient: HttpClient = HttpClient(), enableDefaultProviders: Boolean = true, providers: List<TorrentProvider> = emptyList(), providerCache: TorrentProviderCache? = null, userAgent: String = USER_AGENT, dispatcher: CoroutineDispatcher = Dispatchers.Default)

Parameters

httpClient

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

enableDefaultProviders

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.

providerCache

An optional TorrentProviderCache for caching.

userAgent

An optional User Agent string to use for all requests.

dispatcher

The coroutine dispatcher to process results on, default Dispatchers.Default.