Fixed AnimeWorldProvider

This commit is contained in:
Blatzar 2022-07-20 15:30:17 +02:00
parent b5cfc2db1c
commit 62f13319e3
1 changed files with 7 additions and 4 deletions

View File

@ -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> {