forked from recloudstream/cloudstream
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 {
|
||||
private var cookies = emptyMap<String, String>()
|
||||
|
||||
// Disabled authentication as site did
|
||||
private suspend fun request(url: String): NiceResponse {
|
||||
if (cookies.isEmpty()) {
|
||||
cookies = getCookies(url)
|
||||
}
|
||||
return app.get(url, cookies = cookies)
|
||||
// if (cookies.isEmpty()) {
|
||||
// cookies = getCookies(url)
|
||||
// }
|
||||
return app.get(url
|
||||
// , cookies = cookies
|
||||
)
|
||||
}
|
||||
|
||||
private suspend fun getCookies(url: String): Map<String, String> {
|
||||
|
|
Loading…
Reference in a new issue