[extractor] added ByteShare (#337)

* add byteshare extractor

* reformat code

* make it simple

* no regex
This commit is contained in:
LiJu09 2023-01-27 23:44:00 +00:00 committed by GitHub
parent 01f1edab3c
commit b2b16fccc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

View File

@ -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
}
}

View File

@ -361,6 +361,7 @@ val extractorApis: MutableList<ExtractorApi> = arrayListOf(
Cda(),
Dailymotion(),
ByteShare(),
)