diff --git a/src/en/restscans/build.gradle b/src/en/restscans/build.gradle new file mode 100644 index 000000000..3617370ba --- /dev/null +++ b/src/en/restscans/build.gradle @@ -0,0 +1,10 @@ +ext { + extName = 'Rest Scans' + extClass = '.RestScans' + themePkg = 'mangathemesia' + baseUrl = 'https://restscans.com' + overrideVersionCode = 0 + isNsfw = true +} + +apply from: "$rootDir/common.gradle" diff --git a/src/en/restscans/res/mipmap-hdpi/ic_launcher.png b/src/en/restscans/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 000000000..fe3e88282 Binary files /dev/null and b/src/en/restscans/res/mipmap-hdpi/ic_launcher.png differ diff --git a/src/en/restscans/res/mipmap-mdpi/ic_launcher.png b/src/en/restscans/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 000000000..22f845522 Binary files /dev/null and b/src/en/restscans/res/mipmap-mdpi/ic_launcher.png differ diff --git a/src/en/restscans/res/mipmap-xhdpi/ic_launcher.png b/src/en/restscans/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 000000000..abcb95d80 Binary files /dev/null and b/src/en/restscans/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/src/en/restscans/res/mipmap-xxhdpi/ic_launcher.png b/src/en/restscans/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 000000000..26eba2062 Binary files /dev/null and b/src/en/restscans/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/src/en/restscans/res/mipmap-xxxhdpi/ic_launcher.png b/src/en/restscans/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 000000000..54f6d8eb4 Binary files /dev/null and b/src/en/restscans/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/src/en/restscans/src/eu/kanade/tachiyomi/extension/en/restscans/RestScans.kt b/src/en/restscans/src/eu/kanade/tachiyomi/extension/en/restscans/RestScans.kt new file mode 100644 index 000000000..50d18e4b3 --- /dev/null +++ b/src/en/restscans/src/eu/kanade/tachiyomi/extension/en/restscans/RestScans.kt @@ -0,0 +1,18 @@ +package eu.kanade.tachiyomi.extension.en.restscans + +import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia +import org.jsoup.nodes.Document + +class RestScans : MangaThemesia( + "Rest Scans", + "https://restscans.com", + "en", +) { + override fun mangaDetailsParse(document: Document) = super.mangaDetailsParse(document).apply { + description = document.select(seriesDescriptionSelector).apply { select(".rs-comments-wrapper").remove() }.joinToString("\n") { it.text() }.trim() + val altName = document.selectFirst(seriesDetailsSelector)?.selectFirst(seriesAltNameSelector)?.ownText().takeIf { it.isNullOrBlank().not() } + altName?.let { + description = "$description\n\n$altNamePrefix$altName".trim() + } + } +}