mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fixed Kickassanime, Kuramanime and added duration in SoraStream
This commit is contained in:
parent
c4a5dfe065
commit
4e68bcf923
5 changed files with 13 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 8
|
||||
version = 9
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -118,11 +118,14 @@ class KuramanimeProvider : MainAPI() {
|
|||
|
||||
for (i in 1..6) {
|
||||
val doc = app.get("$url?page=$i").document
|
||||
val eps = Jsoup.parse(doc.select("#episodeLists").attr("data-content")).select("a").mapNotNull {
|
||||
val name = it.text().trim()
|
||||
val link = it.attr("href")
|
||||
Episode(link, name)
|
||||
}.filter { it.name?.contains(Regex("(?i)(Terlama)|(Terbaru)")) == false }
|
||||
val eps = Jsoup.parse(doc.select("#episodeLists").attr("data-content")).select("a.btn.btn-sm.btn-danger")
|
||||
.mapNotNull {
|
||||
val name = it.text().trim()
|
||||
val episode = Regex("(\\d+[.,]?\\d*)").find(name)?.groupValues?.getOrNull(0)
|
||||
?.toIntOrNull()
|
||||
val link = it.attr("href")
|
||||
Episode(link, name, episode = episode)
|
||||
}
|
||||
if(eps.isEmpty()) break else episodes.addAll(eps)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue