Remove Toonei, website is dead. (#8256)

This commit is contained in:
Alessandro Jean 2021-07-26 07:36:15 -03:00 committed by GitHub
parent aaee80b6f9
commit d1fc545b98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 1 additions and 23 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

View File

@ -1,21 +0,0 @@
package eu.kanade.tachiyomi.extension.pt.toonei
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.multisrc.mangasproject.MangasProject
import okhttp3.OkHttpClient
import org.jsoup.nodes.Document
import java.util.concurrent.TimeUnit
class Toonei : MangasProject("Toonei", "https://toonei.net", "pt-BR") {
override val client: OkHttpClient = super.client.newBuilder()
.addInterceptor(RateLimitInterceptor(1, 2, TimeUnit.SECONDS))
.build()
override fun getReaderToken(document: Document): String? {
return document.select("script:containsData(window.PAGES_KEY)").firstOrNull()
?.data()
?.substringAfter("\"")
?.substringBefore("\";")
}
}

View File

@ -13,8 +13,7 @@ class MangasProjectGenerator : ThemeSourceGenerator {
override val sources = listOf(
SingleLang("Leitor.net", "https://leitor.net", "pt-BR", className = "LeitorNet", isNsfw = true),
SingleLang("Mangá Livre", "https://mangalivre.net", "pt-BR", className = "MangaLivre", isNsfw = true),
SingleLang("Toonei", "https://toonei.net", "pt-BR", isNsfw = true),
SingleLang("Mangá Livre", "https://mangalivre.net", "pt-BR", className = "MangaLivre", isNsfw = true)
)
companion object {