Compare commits
No commits in common. "b0c94febf59aedd5f5259ee0708576bb28f2495b" and "d27f2e61a6ef3af1b0da6f25675f1b16687f82aa" have entirely different histories.
b0c94febf5
...
d27f2e61a6
3 changed files with 3 additions and 22 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 5
|
||||
version = 4
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -97,7 +97,7 @@ class KlonTVProvider : MainAPI() {
|
|||
// JSON
|
||||
val title = titleJson.name
|
||||
val poster = titleJson.image
|
||||
val rating = titleJson.aggregateRating?.ratingValue.toString().toRatingInt()
|
||||
val rating = titleJson.aggregateRating.ratingValue.toString().toRatingInt()
|
||||
val actors = titleJson.actor.map { it.name }
|
||||
|
||||
// HTML
|
||||
|
@ -190,17 +190,6 @@ class KlonTVProvider : MainAPI() {
|
|||
referer = "https://tortuga.wtf/"
|
||||
).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
|
||||
}
|
||||
|
||||
|
@ -219,14 +208,6 @@ class KlonTVProvider : MainAPI() {
|
|||
streamUrl = episode.file,
|
||||
referer = "https://tortuga.wtf/"
|
||||
).forEach(callback)
|
||||
|
||||
if(episode.subtitle.isBlank()) return true
|
||||
subtitleCallback.invoke(
|
||||
SubtitleFile(
|
||||
episode.subtitle.substringAfterLast("[").substringBefore("]"),
|
||||
episode.subtitle.substringAfter("]")
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ data class GeneralInfo (
|
|||
val director : List<Director>,
|
||||
val actor : List<Actor>,
|
||||
val countryOfOrigin : List<CountryOfOrigin>,
|
||||
val aggregateRating : AggregateRating?,
|
||||
val aggregateRating : AggregateRating
|
||||
)
|
||||
|
||||
data class Director (
|
||||
|
|
Loading…
Reference in a new issue