From f1e35269424324a8a0813627e12987d529468378 Mon Sep 17 00:00:00 2001 From: lisa Date: Sat, 23 Dec 2023 10:16:48 +0700 Subject: [PATCH] small fix --- .../main/kotlin/com/hexated/SoraExtractor.kt | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt b/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt index 1a3492888..1bde57162 100644 --- a/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt +++ b/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt @@ -2277,18 +2277,14 @@ object SoraExtractor : SoraStream() { val showboxApi = "https://www.showbox.media" val (seasonSlug, episodeSlug) = getEpisodeSlug(season, episode) - val res = app.post( - "$showboxApi/search/autocomplate2", data = mapOf( - "keyword" to "$title" - ), headers = mapOf("X-Requested-With" to "XMLHttpRequest") - ).parsed().let { Jsoup.parse(it) } + val res = app.get("$showboxApi/search?keyword=$title").document - val mediaRes = res.select("a.nav-item").map { + val mediaRes = res.select("div.film_list-wrap div.flw-item").map { ShowboxMedia( - it.attr("href"), - it.select("h3.film-name").text(), - it.select("div.film-infor > span:first-child").text(), - it.select("div.film-infor > span:last-child").text(), + it.select("h2.film-name a").attr("href"), + it.select("h2.film-name a").text(), + it.select("div.fd-infor > span:first-child").text(), + it.select("div.fd-infor > span:last-child").text(), ) } @@ -2331,7 +2327,7 @@ object SoraExtractor : SoraStream() { callback.invoke( ExtractorLink( "Febbox", - "Febbox [Server $index]", + "Febbox [Server ${index + 1}]", "$febboxAPI/hls/main/${fileList.oss_fid}.m3u8", "", getIndexQuality(fileList.file_name),