This commit is contained in:
parent
3ada61891e
commit
6122e99d50
1 changed files with 20 additions and 0 deletions
|
@ -158,6 +158,17 @@ class EneyidaProvider : MainAPI() {
|
||||||
referer = "https://tortuga.wtf/"
|
referer = "https://tortuga.wtf/"
|
||||||
).forEach(callback)
|
).forEach(callback)
|
||||||
|
|
||||||
|
val subtitleUrl = app.get(dataList[1]).document.select("script").html()
|
||||||
|
.substringAfterLast("subtitle: \"")
|
||||||
|
.substringBefore("\",")
|
||||||
|
|
||||||
|
if(subtitleUrl.isNullOrBlank()) return true
|
||||||
|
subtitleCallback.invoke(
|
||||||
|
SubtitleFile(
|
||||||
|
subtitleUrl.substringAfterLast("[").substringBefore("]"),
|
||||||
|
subtitleUrl.substringAfter("]")
|
||||||
|
)
|
||||||
|
)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -176,6 +187,15 @@ class EneyidaProvider : MainAPI() {
|
||||||
streamUrl = episode.file.replace("https://", "http://"),
|
streamUrl = episode.file.replace("https://", "http://"),
|
||||||
referer = "https://tortuga.wtf/"
|
referer = "https://tortuga.wtf/"
|
||||||
).forEach(callback)
|
).forEach(callback)
|
||||||
|
|
||||||
|
if(episode.subtitle.isBlank()) return true
|
||||||
|
subtitleCallback.invoke(
|
||||||
|
SubtitleFile(
|
||||||
|
episode.subtitle.substringAfterLast("[").substringBefore("]"),
|
||||||
|
episode.subtitle.substringAfter("]")
|
||||||
|
)
|
||||||
|
)
|
||||||
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue