mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
samehadaku:fix homepage
This commit is contained in:
parent
72622e8d58
commit
27d9b002df
7 changed files with 36 additions and 13 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 11
|
||||
version = 12
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -8,7 +8,7 @@ import com.lagradost.cloudstream3.utils.loadExtractor
|
|||
import org.jsoup.nodes.Element
|
||||
|
||||
class Samehadaku : MainAPI() {
|
||||
override var mainUrl = "https://samehadaku.day"
|
||||
override var mainUrl = "https://samehadaku.lat"
|
||||
override var name = "Samehadaku"
|
||||
override val hasMainPage = true
|
||||
override var lang = "id"
|
||||
|
@ -51,7 +51,7 @@ class Samehadaku : MainAPI() {
|
|||
|
||||
if (request.name != "Episode Terbaru" && page <= 1) {
|
||||
val doc = app.get(request.data).document
|
||||
doc.select("div.widget_senction").forEach { block ->
|
||||
doc.select("div.widget_senction:not(:contains(Baca Komik))").forEach { block ->
|
||||
val header = block.selectFirst("div.widget-title h3")?.ownText() ?: return@forEach
|
||||
val home = block.select("div.animepost").mapNotNull {
|
||||
it.toSearchResult()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue