Initial commit
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 4.5 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.5 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 6.3 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
BIN
multisrc/overrides/madara/coffeemanga/res/web_hi_res_512.png
Normal file
BIN
multisrc/overrides/madara/coffeemanga/res/web_hi_res_512.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 86 KiB |
19
multisrc/overrides/madara/coffeemanga/src/CoffeeManga.kt
Normal file
19
multisrc/overrides/madara/coffeemanga/src/CoffeeManga.kt
Normal file
@@ -0,0 +1,19 @@
|
||||
package eu.kanade.tachiyomi.extension.en.coffeemanga
|
||||
|
||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||
import org.jsoup.nodes.Element
|
||||
|
||||
class CoffeeManga : Madara("Coffee Manga", "https://coffeemanga.io", "en") {
|
||||
override val useNewChapterEndpoint = false
|
||||
|
||||
override fun searchPage(page: Int): String = if (page == 1) "" else "page/$page/"
|
||||
|
||||
override fun imageFromElement(element: Element): String? {
|
||||
return when {
|
||||
element.hasAttr("data-src") && element.attr("data-src").isNotEmpty() -> element.attr("abs:data-src")
|
||||
element.hasAttr("data-lazy-src") && element.attr("data-lazy-src").isNotEmpty() -> element.attr("abs:data-lazy-src")
|
||||
element.hasAttr("srcset") && element.attr("srcset").isNotEmpty() -> element.attr("abs:srcset").substringBefore(" ")
|
||||
else -> element.attr("abs:src")
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user