ExtractorLink

open class ExtractorLink(val source: String, val name: String, val url: String, val referer: String, val quality: Int, val headers: Map<String, String> = mapOf(), val extractorData: String? = null, val type: ExtractorLinkType) : IDownloadableMinimum(source)

Inheritors

Constructors

Link copied to clipboard
constructor(source: String, name: String, url: String, referer: String, quality: Int, type: ExtractorLinkType?, headers: Map<String, String> = mapOf(), extractorData: String? = null)
constructor(source: String, name: String, url: String, referer: String, quality: Int, isM3u8: Boolean = false, headers: Map<String, String> = mapOf(), extractorData: String? = null)

Old constructor without isDash, allows for backwards compatibility with extensions. Should be removed after all extensions have updated their cloudstream.jar

constructor(source: String, name: String, url: String, referer: String, quality: Int, isM3u8: Boolean = false, headers: Map<String, String> = mapOf(), extractorData: String? = null, isDash: Boolean)
constructor(source: String, name: String, url: String, referer: String, quality: Int, headers: Map<String, String> = mapOf(), extractorData: String? = null, type: ExtractorLinkType)

Properties

Link copied to clipboard
open val extractorData: String? = null

Used for getExtractorVerifierJob()

Link copied to clipboard
open override val headers: Map<String, String>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val name: String
Link copied to clipboard
open val quality: Int
Link copied to clipboard
open override val referer: String
Link copied to clipboard
open val source: String
Link copied to clipboard
Link copied to clipboard
open override val url: String

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun getVideoSize(timeoutSeconds: Long = 3): Long?

Get video size in bytes with one head request. Only available for ExtractorLinkType.Video

Link copied to clipboard
open override fun toString(): String