mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
6524eb220b
* Added some mirrors and fixed some extractors * Fixed Vido extractor (for MesFilms and Wiflix)
38 lines
1.2 KiB
Kotlin
38 lines
1.2 KiB
Kotlin
package com.lagradost.cloudstream3.extractors
|
|
|
|
import com.lagradost.cloudstream3.utils.*
|
|
import com.lagradost.cloudstream3.app
|
|
|
|
class Uqload1 : Uqload() {
|
|
override var mainUrl = "https://uqload.com"
|
|
}
|
|
|
|
class Uqload2 : Uqload() {
|
|
override var mainUrl = "https://uqload.co"
|
|
}
|
|
|
|
open class Uqload : ExtractorApi() {
|
|
override val name: String = "Uqload"
|
|
override val mainUrl: String = "https://www.uqload.com"
|
|
private val srcRegex = Regex("""sources:.\[(.*?)\]""") // would be possible to use the parse and find src attribute
|
|
override val requiresReferer = true
|
|
|
|
|
|
override suspend fun getUrl(url: String, referer: String?): List<ExtractorLink>? {
|
|
with(app.get(url)) { // raised error ERROR_CODE_PARSING_CONTAINER_UNSUPPORTED (3003) is due to the response: "error_nofile"
|
|
srcRegex.find(this.text)?.groupValues?.get(1)?.replace("\"", "")?.let { link ->
|
|
return listOf(
|
|
ExtractorLink(
|
|
name,
|
|
name,
|
|
link,
|
|
url,
|
|
Qualities.Unknown.value,
|
|
)
|
|
)
|
|
}
|
|
}
|
|
return null
|
|
}
|
|
}
|