mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fixed missing show in Baymovies
This commit is contained in:
parent
5626049d94
commit
c334d1fb27
1 changed files with 10 additions and 7 deletions
|
@ -182,7 +182,8 @@ object SoraExtractor : SoraStream() {
|
|||
val ref = getBaseUrl(iframeDbgo)
|
||||
decryptStreamUrl(source).split(",").map { links ->
|
||||
val quality =
|
||||
Regex("\\[([0-9]*p.*?)]").find(links)?.groupValues?.getOrNull(1)?.trim() ?: return@map null
|
||||
Regex("\\[([0-9]*p.*?)]").find(links)?.groupValues?.getOrNull(1)?.trim()
|
||||
?: return@map null
|
||||
links.replace("[$quality]", "").split(" or ").map { it.trim() }.map { link ->
|
||||
val name = if (link.contains(".m3u8")) "Dbgo (Main)" else "Dbgo (Backup)"
|
||||
callback.invoke(
|
||||
|
@ -2086,7 +2087,8 @@ object SoraExtractor : SoraStream() {
|
|||
"cf_cache_token" to "UKsVpQqBMxB56gBfhYKbfCVkRIXMh42pk6G4DdkXXoVh7j4BjV"
|
||||
)
|
||||
|
||||
val titleSlug = title.fixTitle()?.replace("-", ".") ?: return
|
||||
val dotSlug = title.fixTitle()?.replace("-", ".") ?: return
|
||||
val spaceSlug = title.fixTitle()?.replace("-", " ") ?: return
|
||||
val (episodeSlug, seasonSlug) = if (season == null) {
|
||||
listOf("", "")
|
||||
} else {
|
||||
|
@ -2113,9 +2115,9 @@ object SoraExtractor : SoraStream() {
|
|||
"720p",
|
||||
true
|
||||
) == false && (media.mimeType == "video/x-matroska" || media.mimeType == "video/mp4") && (media.name.contains(
|
||||
titleSlug,
|
||||
dotSlug,
|
||||
true
|
||||
) || media.name.contains(title ?: return, true))
|
||||
) || media.name.contains(spaceSlug, true))
|
||||
}?.distinctBy { it.name } ?: return
|
||||
|
||||
media.apmap { file ->
|
||||
|
@ -2127,7 +2129,8 @@ object SoraExtractor : SoraStream() {
|
|||
val encryptedExpiry = base64Encode(CryptoAES.encrypt(key, expiry).toByteArray())
|
||||
val worker = getConfig().workers.randomOrNull() ?: return@apmap null
|
||||
|
||||
val link = "https://api.$worker.workers.dev/download.aspx?file=$encryptedId&expiry=$encryptedExpiry&mac=$hmacSign"
|
||||
val link =
|
||||
"https://api.$worker.workers.dev/download.aspx?file=$encryptedId&expiry=$encryptedExpiry&mac=$hmacSign"
|
||||
val size = file.size?.toDouble() ?: return@apmap null
|
||||
val sizeFile = "%.2f GB".format(bytesToGigaBytes(size))
|
||||
val tags = Regex("\\d{3,4}[pP]\\.?(.*?)\\.(mkv|mp4)").find(
|
||||
|
|
Loading…
Reference in a new issue