mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fixed AnimeSail
This commit is contained in:
parent
3ca01b9b81
commit
6d77ca847d
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 6
|
version = 7
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -118,7 +118,7 @@ class AnimeSailProvider : MainAPI() {
|
||||||
val episodes = document.select("ul.daftar > li").map {
|
val episodes = document.select("ul.daftar > li").map {
|
||||||
val link = fixUrl(it.select("a").attr("href"))
|
val link = fixUrl(it.select("a").attr("href"))
|
||||||
val name = it.select("a").text()
|
val name = it.select("a").text()
|
||||||
val episode = Regex("(\\d+[.,]?\\d*)").find(name)?.groupValues?.getOrNull(0)?.toIntOrNull()
|
val episode = Regex("Episode\\s?(\\d+)").find(name)?.groupValues?.getOrNull(0)?.toIntOrNull()
|
||||||
Episode(link, name, episode = episode)
|
Episode(link, name, episode = episode)
|
||||||
}.reversed()
|
}.reversed()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue