Add Jellyring (#3552)

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

View File

@ -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

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

View File

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