forked from AlmightyHak/extensions-source
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:
parent
9f385108fc
commit
1384df62f3
350 changed files with 12176 additions and 1064 deletions
|
@ -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)
|
||||
}
|
||||
}
|
|
@ -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)
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue