mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Fixed AnimeWorldProvider
This commit is contained in:
parent
b5cfc2db1c
commit
62f13319e3
1 changed files with 7 additions and 4 deletions
|
@ -31,11 +31,14 @@ class AnimeWorldProvider : MainAPI() {
|
||||||
companion object {
|
companion object {
|
||||||
private var cookies = emptyMap<String, String>()
|
private var cookies = emptyMap<String, String>()
|
||||||
|
|
||||||
|
// Disabled authentication as site did
|
||||||
private suspend fun request(url: String): NiceResponse {
|
private suspend fun request(url: String): NiceResponse {
|
||||||
if (cookies.isEmpty()) {
|
// if (cookies.isEmpty()) {
|
||||||
cookies = getCookies(url)
|
// cookies = getCookies(url)
|
||||||
}
|
// }
|
||||||
return app.get(url, cookies = cookies)
|
return app.get(url
|
||||||
|
// , cookies = cookies
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
private suspend fun getCookies(url: String): Map<String, String> {
|
private suspend fun getCookies(url: String): Map<String, String> {
|
||||||
|
|
Loading…
Reference in a new issue