mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fixed Otakudesu, Rebahin, Kuramanime
This commit is contained in:
parent
57ebef9198
commit
25e2deb249
7 changed files with 16 additions and 15 deletions
|
@ -1565,17 +1565,13 @@ object SoraExtractor : SoraStream() {
|
|||
subtitleCallback: (SubtitleFile) -> Unit,
|
||||
callback: (ExtractorLink) -> Unit
|
||||
) {
|
||||
val fixTitle = title?.replace(":", "")
|
||||
val fixTitle = title?.fixTitle()?.replace("-", " ")
|
||||
val doc = app.get("$moviezAddAPI/?s=$fixTitle").document
|
||||
|
||||
// TODO find better way
|
||||
val matchMedia = doc.select("article.mh-loop-item").map {
|
||||
it.select("a").attr("href") to it.select("a").text()
|
||||
}.find {
|
||||
(it.second.contains("$fixTitle", true) || it.second.contains(
|
||||
"$title",
|
||||
true
|
||||
)) && it.first.contains("$year")
|
||||
it.second.contains(Regex("(?i)($fixTitle)|($title)")) && it.first.contains("$year")
|
||||
}
|
||||
|
||||
val detailLink =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue