fixed several providers

This commit is contained in:
hexated 2023-03-04 05:37:14 +07:00
parent 8fbd218574
commit 3f2f8d8000
8 changed files with 45 additions and 36 deletions

View file

@ -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"),

View file

@ -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(