diff --git a/src/tr/jellyring/build.gradle b/src/tr/jellyring/build.gradle new file mode 100644 index 000000000..1a227f744 --- /dev/null +++ b/src/tr/jellyring/build.gradle @@ -0,0 +1,10 @@ +ext { + extName = 'Jellyring' + extClass = '.Jellyring' + themePkg = 'madara' + baseUrl = 'https://jellyring.co' + overrideVersionCode = 0 + isNsfw = false +} + +apply from: "$rootDir/common.gradle" diff --git a/src/tr/jellyring/res/mipmap-hdpi/ic_launcher.png b/src/tr/jellyring/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 000000000..14df0e771 Binary files /dev/null and b/src/tr/jellyring/res/mipmap-hdpi/ic_launcher.png differ diff --git a/src/tr/jellyring/res/mipmap-mdpi/ic_launcher.png b/src/tr/jellyring/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 000000000..7583c23ed Binary files /dev/null and b/src/tr/jellyring/res/mipmap-mdpi/ic_launcher.png differ diff --git a/src/tr/jellyring/res/mipmap-xhdpi/ic_launcher.png b/src/tr/jellyring/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 000000000..0275b80c8 Binary files /dev/null and b/src/tr/jellyring/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/src/tr/jellyring/res/mipmap-xxhdpi/ic_launcher.png b/src/tr/jellyring/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 000000000..4af3e1315 Binary files /dev/null and b/src/tr/jellyring/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/src/tr/jellyring/res/mipmap-xxxhdpi/ic_launcher.png b/src/tr/jellyring/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 000000000..d928a4d51 Binary files /dev/null and b/src/tr/jellyring/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/src/tr/jellyring/src/eu/kanade/tachiyomi/extension/tr/jellyring/Jellyring.kt b/src/tr/jellyring/src/eu/kanade/tachiyomi/extension/tr/jellyring/Jellyring.kt new file mode 100644 index 000000000..9e59ac554 --- /dev/null +++ b/src/tr/jellyring/src/eu/kanade/tachiyomi/extension/tr/jellyring/Jellyring.kt @@ -0,0 +1,31 @@ +package eu.kanade.tachiyomi.extension.tr.jellyring + +import eu.kanade.tachiyomi.multisrc.madara.Madara +import org.jsoup.nodes.Document +import java.text.SimpleDateFormat +import java.util.Locale + +class Jellyring : Madara( + "Jellyring", + "https://jellyring.co", + "tr", + dateFormat = SimpleDateFormat("MMMM d, yyyy", Locale("tr")), +) { + override val useLoadMoreRequest = LoadMoreStrategy.Never + override val useNewChapterEndpoint = true + + override fun genresRequest() = popularMangaRequest(1) + + // Derived from CreepyScans + override fun parseGenres(document: Document): List { + return document.select(".list-unstyled li").mapNotNull { genre -> + genre.selectFirst("a[href]")?.let { + val slug = it.attr("href") + .split("/") + .last(String::isNotEmpty) + + Genre(it.ownText().trim(), slug) + } + } + } +}