Skip to content

Commit

Permalink
YuraManga: exclude alternating broken images (#6233)
Browse files Browse the repository at this point in the history
* YuraManga: fix page selector

* set locale for date format

* bump version, set nsfw
  • Loading branch information
vetleledaal authored Nov 29, 2024
1 parent c7c7ac5 commit 2e79d28
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/id/yuramanga/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ ext {
extClass = '.YuraManga'
themePkg = 'zmanga'
baseUrl = 'https://www.yuramanga.my.id'
overrideVersionCode = 37
overrideVersionCode = 38
isNsfw = false
}

apply from: "$rootDir/common.gradle"
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
package eu.kanade.tachiyomi.extension.id.yuramanga

import eu.kanade.tachiyomi.multisrc.zmanga.ZManga
import eu.kanade.tachiyomi.source.model.Page
import org.jsoup.nodes.Document
import java.io.IOException
import java.text.SimpleDateFormat
import java.util.Locale

class YuraManga : ZManga(
"YuraManga",
"https://www.yuramanga.my.id",
"id",
SimpleDateFormat("dd/MM/yyyy"),
SimpleDateFormat("dd/MM/yyyy", Locale.ROOT),
) {
// Moved from Madara to ZManga
override val versionId = 3
Expand All @@ -22,4 +25,10 @@ class YuraManga : ZManga(
response
}
.build()

override fun pageListParse(document: Document): List<Page> {
return document.select("div.reader-area img.lazyload").mapIndexed { i, img ->
Page(i, "", img.attr("abs:data-src"))
}
}
}

0 comments on commit 2e79d28

Please sign in to comment.