forked from recloudstream/cloudstream
[extractor] added ByteShare (#337)
* add byteshare extractor * reformat code * make it simple * no regex
This commit is contained in:
parent
01f1edab3c
commit
b2b16fccc5
2 changed files with 24 additions and 0 deletions
|
@ -0,0 +1,23 @@
|
|||
package com.lagradost.cloudstream3.extractors
|
||||
|
||||
import com.lagradost.cloudstream3.utils.*
|
||||
|
||||
open class ByteShare : ExtractorApi() {
|
||||
override val name = "ByteShare"
|
||||
override val mainUrl = "https://byteshare.net"
|
||||
override val requiresReferer = false
|
||||
|
||||
override suspend fun getUrl(url: String, referer: String?): List<ExtractorLink> {
|
||||
val sources = mutableListOf<ExtractorLink>()
|
||||
sources.add(
|
||||
ExtractorLink(
|
||||
name,
|
||||
name,
|
||||
url.replace("/embed/", "/download/"),
|
||||
"",
|
||||
Qualities.Unknown.value,
|
||||
)
|
||||
)
|
||||
return sources
|
||||
}
|
||||
}
|
|
@ -361,6 +361,7 @@ val extractorApis: MutableList<ExtractorApi> = arrayListOf(
|
|||
|
||||
Cda(),
|
||||
Dailymotion(),
|
||||
ByteShare(),
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue