Merged with dark25 (#636)

* merge

merged lib, lib-multisrc, all, ar, de, en, es, fr, hi, id, it, pt, tr src from dark25

* patch
This commit is contained in:
Hak 2025-02-10 15:41:59 +07:00 committed by GitHub
parent 9f385108fc
commit 1384df62f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
350 changed files with 12176 additions and 1064 deletions

View file

@ -1,7 +1,7 @@
ext {
extName = 'ANIMEWORLD.tv'
extClass = '.ANIMEWORLD'
extVersionCode = 44
extVersionCode = 45
}
apply from: "$rootDir/common.gradle"
@ -12,4 +12,4 @@ dependencies {
implementation(project(':lib:streamhidevid-extractor'))
implementation(project(':lib:vidguard-extractor'))
implementation(libs.jsunpacker)
}
}

View file

@ -27,7 +27,6 @@ import org.jsoup.nodes.Element
import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.get
import uy.kohesive.injekt.injectLazy
import java.lang.Exception
class ANIMEWORLD : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
@ -149,7 +148,7 @@ class ANIMEWORLD : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
?.let(::listOf)
}
url.contains("streamhide") -> {
StreamHideVidExtractor(client).videosFromUrl(url)
StreamHideVidExtractor(client, headers).videosFromUrl(url)
}
url.contains("vidguard") or url.contains("listeamed") -> {
VidGuardExtractor(client).videosFromUrl(url)

View file

@ -26,7 +26,8 @@ class ShittyRedirectionInterceptor(private val client: OkHttpClient) : Intercept
}
private fun loadCookies(request: Request, response: Response): Request {
val (cookieString) = """document\.cookie="([^"]+)""".toRegex().find(response.body.string())!!.destructured
val (cookieString) = """document\.cookie="([^"]+)""".toRegex()
.find(response.body.string())!!.destructured
val cookie = Cookie.parse(request.url, cookieString)!!
client.cookieJar.saveFromResponse(request.url, listOf(cookie))