small fix

This commit is contained in:
lisa 2023-12-23 10:16:48 +07:00
parent 0d09638a9c
commit f1e3526942

View file

@ -2277,18 +2277,14 @@ object SoraExtractor : SoraStream() {
val showboxApi = "https://www.showbox.media" val showboxApi = "https://www.showbox.media"
val (seasonSlug, episodeSlug) = getEpisodeSlug(season, episode) val (seasonSlug, episodeSlug) = getEpisodeSlug(season, episode)
val res = app.post( val res = app.get("$showboxApi/search?keyword=$title").document
"$showboxApi/search/autocomplate2", data = mapOf(
"keyword" to "$title"
), headers = mapOf("X-Requested-With" to "XMLHttpRequest")
).parsed<String>().let { Jsoup.parse(it) }
val mediaRes = res.select("a.nav-item").map { val mediaRes = res.select("div.film_list-wrap div.flw-item").map {
ShowboxMedia( ShowboxMedia(
it.attr("href"), it.select("h2.film-name a").attr("href"),
it.select("h3.film-name").text(), it.select("h2.film-name a").text(),
it.select("div.film-infor > span:first-child").text(), it.select("div.fd-infor > span:first-child").text(),
it.select("div.film-infor > span:last-child").text(), it.select("div.fd-infor > span:last-child").text(),
) )
} }
@ -2331,7 +2327,7 @@ object SoraExtractor : SoraStream() {
callback.invoke( callback.invoke(
ExtractorLink( ExtractorLink(
"Febbox", "Febbox",
"Febbox [Server $index]", "Febbox [Server ${index + 1}]",
"$febboxAPI/hls/main/${fileList.oss_fid}.m3u8", "$febboxAPI/hls/main/${fileList.oss_fid}.m3u8",
"", "",
getIndexQuality(fileList.file_name), getIndexQuality(fileList.file_name),