Update Ngefilm.kt

This commit is contained in:
Hexated 2023-06-15 11:54:58 +07:00 committed by GitHub
parent 2b3fb0e8e0
commit 03abe25ac5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ class Ngefilm : MainAPI() {
.filter { element -> !element.text().contains("Pilih Episode", true) }
.map { eps ->
val href = fixUrl(eps.attr("href"))
val episode = eps.text().filter { it.isDigit() }.toIntOrNull()
val episode = eps.text().substringAfter("Eps").toIntOrNull()
val season =
eps.text().split(" ").first().substringAfter("S").toIntOrNull() ?: 1
Episode(