mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fixed several providers
This commit is contained in:
parent
8fbd218574
commit
3f2f8d8000
8 changed files with 45 additions and 36 deletions
|
|
@ -1373,9 +1373,7 @@ object SoraExtractor : SoraStream() {
|
|||
it.select("img").attr("src")
|
||||
)
|
||||
}.filter {
|
||||
(it.quality.contains("1080p", true) || it.quality.contains(
|
||||
"4k", true
|
||||
)) && (it.type.contains("gdtot") || it.type.contains("oiya"))
|
||||
it.quality.contains(Regex("(?i)(1080p|4k)")) && it.type.contains(Regex("(gdtot|oiya)"))
|
||||
}
|
||||
iframe.apmap { (link, quality, size, type) ->
|
||||
val qualities = getFDoviesQuality(quality)
|
||||
|
|
@ -2517,7 +2515,7 @@ object SoraExtractor : SoraStream() {
|
|||
episode: Int? = null,
|
||||
callback: (ExtractorLink) -> Unit,
|
||||
) {
|
||||
val query = getIndexQuery(title, year, season, episode)
|
||||
val query = getIndexQuery(title, null, season, episode)
|
||||
val files = app.get("$gdbot/search?q=$query").document.select("ul.divide-y li").map {
|
||||
Triple(
|
||||
it.select("a").attr("href"),
|
||||
|
|
|
|||
|
|
@ -788,11 +788,11 @@ fun getIndexQuery(
|
|||
episode: Int? = null
|
||||
): String {
|
||||
val (seasonSlug, episodeSlug) = getEpisodeSlug(season, episode)
|
||||
return if (season == null) {
|
||||
"$title $year"
|
||||
return (if (season == null) {
|
||||
"$title ${year ?: ""}"
|
||||
} else {
|
||||
"$title S${seasonSlug}E${episodeSlug}"
|
||||
}
|
||||
}).trim()
|
||||
}
|
||||
|
||||
fun searchIndex(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue