diff --git a/src/pt/ssreading/build.gradle b/src/pt/ssreading/build.gradle new file mode 100644 index 000000000..173bd5b31 --- /dev/null +++ b/src/pt/ssreading/build.gradle @@ -0,0 +1,10 @@ +ext { + extName = 'SS Reading' + extClass = '.SSReading' + themePkg = 'madara' + baseUrl = 'https://ssreading.com.br' + overrideVersionCode = 0 + isNsfw = true +} + +apply from: "$rootDir/common.gradle" diff --git a/src/pt/ssreading/res/mipmap-hdpi/ic_launcher.png b/src/pt/ssreading/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 000000000..e4afefd85 Binary files /dev/null and b/src/pt/ssreading/res/mipmap-hdpi/ic_launcher.png differ diff --git a/src/pt/ssreading/res/mipmap-mdpi/ic_launcher.png b/src/pt/ssreading/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 000000000..f53568829 Binary files /dev/null and b/src/pt/ssreading/res/mipmap-mdpi/ic_launcher.png differ diff --git a/src/pt/ssreading/res/mipmap-xhdpi/ic_launcher.png b/src/pt/ssreading/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 000000000..40727c273 Binary files /dev/null and b/src/pt/ssreading/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/src/pt/ssreading/res/mipmap-xxhdpi/ic_launcher.png b/src/pt/ssreading/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 000000000..33c8fad42 Binary files /dev/null and b/src/pt/ssreading/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/src/pt/ssreading/res/mipmap-xxxhdpi/ic_launcher.png b/src/pt/ssreading/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 000000000..4755d8cae Binary files /dev/null and b/src/pt/ssreading/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/src/pt/ssreading/src/eu/kanade/tachiyomi/extension/pt/ssreading/SSReading.kt b/src/pt/ssreading/src/eu/kanade/tachiyomi/extension/pt/ssreading/SSReading.kt new file mode 100644 index 000000000..3f82b53ce --- /dev/null +++ b/src/pt/ssreading/src/eu/kanade/tachiyomi/extension/pt/ssreading/SSReading.kt @@ -0,0 +1,27 @@ +package eu.kanade.tachiyomi.extension.pt.ssreading + +import eu.kanade.tachiyomi.multisrc.madara.Madara +import eu.kanade.tachiyomi.network.interceptor.rateLimit +import eu.kanade.tachiyomi.source.model.SChapter +import okhttp3.Response +import java.text.SimpleDateFormat +import java.util.Locale + +class SSReading : Madara( + "SS Reading", + "https://ssreading.com.br", + "pt-BR", + SimpleDateFormat("dd 'de' MMM 'de' yyyy", Locale("pt", "BR")), +) { + override val client = super.client.newBuilder() + .rateLimit(3) + .build() + + override val useNewChapterEndpoint = true + + override val popularMangaUrlSelector = "${super.popularMangaUrlSelector}:not([href*=discord])" + + override fun chapterListParse(response: Response): List { + return super.chapterListParse(response).reversed() + } +}