Add Jellyring (#3552)
This commit is contained in:
parent
19c013a9cf
commit
e0d4925ae9
|
@ -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 |
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue