EmbedExtractor

abstract class EmbedExtractor(val client: OkHttpClient)

A class for providers that uses indirect and implicit link data sources.

Parameters

client

The OkHttpClient instance used for network requests.

Constructors

Link copied to clipboard
constructor(client: OkHttpClient)

Properties

Link copied to clipboard
abstract val baseUrl: String

The base URL associated with the extractor.

Link copied to clipboard
protected val client: OkHttpClient
Link copied to clipboard
abstract val name: String

The name of the extractor.

Functions

Link copied to clipboard
abstract suspend fun extract(url: String, customHeaders: Map<String, String>? = null, onLinkFound: (MediaLink) -> Unit)

Extracts resource links from the provided embed URL.