mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fixed #314
This commit is contained in:
parent
d5af5cf883
commit
c2c1445a95
1 changed files with 3 additions and 2 deletions
|
@ -1060,6 +1060,7 @@ object SoraExtractor : SoraStream() {
|
||||||
callback: (ExtractorLink) -> Unit,
|
callback: (ExtractorLink) -> Unit,
|
||||||
api: String
|
api: String
|
||||||
) {
|
) {
|
||||||
|
val (seasonSlug, episodeSlug) = getEpisodeSlug(season, episode)
|
||||||
var res = app.get("$api/search/$title").document
|
var res = app.get("$api/search/$title").document
|
||||||
val match = when (season) {
|
val match = when (season) {
|
||||||
null -> "$year"
|
null -> "$year"
|
||||||
|
@ -1073,8 +1074,8 @@ object SoraExtractor : SoraStream() {
|
||||||
res = app.get(media ?: return).document
|
res = app.get(media ?: return).document
|
||||||
val hTag = if (season == null) "h5" else "h3"
|
val hTag = if (season == null) "h5" else "h3"
|
||||||
val aTag = if (season == null) "Download Now" else "V-Cloud"
|
val aTag = if (season == null) "Download Now" else "V-Cloud"
|
||||||
val sTag = if (season == null) "" else "Season $season"
|
val sTag = if (season == null) "" else "(Season $season|S$seasonSlug)"
|
||||||
res.select("div.entry-content > $hTag:matches((?i)$sTag.*1080p|2160p)").
|
res.select("div.entry-content > $hTag:matches((?i)$sTag.*(1080p|2160p))").
|
||||||
filter { element -> !element.text().contains("Download", true) }.apmap {
|
filter { element -> !element.text().contains("Download", true) }.apmap {
|
||||||
val tags =
|
val tags =
|
||||||
"""(?:1080p|2160p)(.*)""".toRegex().find(it.text())?.groupValues?.get(1)?.trim()
|
"""(?:1080p|2160p)(.*)""".toRegex().find(it.text())?.groupValues?.get(1)?.trim()
|
||||||
|
|
Loading…
Reference in a new issue