Add Jellyring ()

This commit is contained in:
Vetle Ledaal 2024-06-14 09:32:41 +02:00 committed by Draff
parent 19c013a9cf
commit e0d4925ae9
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
7 changed files with 41 additions and 0 deletions
src/tr/jellyring
build.gradle
res
mipmap-hdpi
mipmap-mdpi
mipmap-xhdpi
mipmap-xxhdpi
mipmap-xxxhdpi
src/eu/kanade/tachiyomi/extension/tr/jellyring

@ -0,0 +1,10 @@
ext {
extName = 'Jellyring'
extClass = '.Jellyring'
themePkg = 'madara'
baseUrl = 'https://jellyring.co'
overrideVersionCode = 0
isNsfw = false
}
apply from: "$rootDir/common.gradle"

Binary file not shown.

After

(image error) Size: 7.2 KiB

Binary file not shown.

After

(image error) Size: 3.5 KiB

Binary file not shown.

After

(image error) Size: 12 KiB

Binary file not shown.

After

(image error) Size: 25 KiB

Binary file not shown.

After

(image error) Size: 43 KiB

@ -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<Genre> {
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)
}
}
}
}