This commit is contained in:
LiJu09 2023-01-27 15:08:38 +01:00
parent 1f603490a3
commit 0c3a80c5e9
No known key found for this signature in database
GPG key ID: EECD727AC71F45F4

View file

@ -9,13 +9,11 @@ open class ByteShare : ExtractorApi() {
override suspend fun getUrl(url: String, referer: String?): List<ExtractorLink> {
val sources = mutableListOf<ExtractorLink>()
val srcIdRegex = Regex("""(?<=/embed/)(.*)(?=\?)""")
val srcId = srcIdRegex.find(url)?.groups?.get(1)?.value
sources.add(
ExtractorLink(
name,
name,
"$mainUrl/download/$srcId",
url.replace("/embed/", "/download/"),
"",
Qualities.Unknown.value,
)