small fix IndexSubtitle (#126)

This commit is contained in:
Hexated 2022-10-01 18:20:41 +07:00 committed by GitHub
parent 365d470f82
commit b83843d3ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -244,7 +244,7 @@ class IndexSubtitleApi : AbstractSubApi {
} else { } else {
document.select("div.my-3.p-3 div.media").mapNotNull { block -> document.select("div.my-3.p-3 div.media").mapNotNull { block ->
val name = val name =
block.selectFirst("strong.d-block.text-primary")?.text()?.trim().toString() block.selectFirst("strong.d-block")?.text()?.trim().toString()
if (seasonNum!! > 0) { if (seasonNum!! > 0) {
if (isRightEps(name, seasonNum, epNum)) { if (isRightEps(name, seasonNum, epNum)) {
fixUrl(block.selectFirst("a")!!.attr("href")) fixUrl(block.selectFirst("a")!!.attr("href"))