Add burning scans to madara (#559)

* Add burning scans to madara

* fix lint errors
This commit is contained in:
Secozzi 2024-01-24 13:27:16 +00:00 committed by GitHub
parent d419bc310a
commit 97e34c00b4
7 changed files with 28 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View File

@ -0,0 +1,27 @@
package eu.kanade.tachiyomi.extension.pt.burningscans
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.network.interceptor.rateLimit
import okhttp3.Request
import java.text.SimpleDateFormat
import java.util.Locale
class BurningScans : Madara(
"Burning Scans",
"https://burningscans.com",
"pt-BR",
SimpleDateFormat("dd/MM/yyyy", Locale("pt", "BR")),
) {
override val client = super.client.newBuilder()
.rateLimit(2)
.build()
override val useNewChapterEndpoint = true
override fun searchPage(page: Int): String = if (page == 1) "" else "page/$page/"
override fun genresRequest(): Request {
return GET("$baseUrl/?s=&post_type=wp-manga", headers)
}
}

View File

@ -60,6 +60,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("BokugenTranslation", "https://bokugents.com", "es", overrideVersionCode = 1),
SingleLang("Boruto Explorer", "https://leitor.borutoexplorer.com.br", "pt-BR", overrideVersionCode = 1),
SingleLang("BoysLove", "https://boyslove.me", "en", isNsfw = true, overrideVersionCode = 3),
SingleLang("Burning Scans", "https://burningscans.com", "pt-BR", isNsfw = true),
SingleLang("Café com Yaoi", "http://cafecomyaoi.com.br", "pt-BR", className = "CafeComYaoi", isNsfw = true, overrideVersionCode = 1),
SingleLang("CAT-translator", "https://cats-translator.com/manga", "th", className = "CatTranslator", overrideVersionCode = 2),
SingleLang("Cat300", "https://cat300.com", "th", isNsfw = true, overrideVersionCode = 1),