This commit is contained in:
jack 2023-12-10 10:24:44 +07:00
parent 82d4855960
commit e008764fd1
2 changed files with 4 additions and 4 deletions

View file

@ -2236,7 +2236,7 @@ object SoraExtractor : SoraStream() {
videoUrl,
referer = url,
headers = mapOf("X-Requested-With" to "XMLHttpRequest")
).parsedSafe<WatchOnlineResponse>()
).parsedSafe<CinemaTvResponse>()
sources?.streams?.mapKeys { source ->
callback.invoke(

View file

@ -152,14 +152,14 @@ data class JikanResponse(
@JsonProperty("data") val data: JikanData? = null,
)
data class WatchOnlineSubtitles(
data class CinemaTvSubtitles(
@JsonProperty("language") val language: String? = null,
@JsonProperty("file") val file: Any? = null,
)
data class WatchOnlineResponse(
data class CinemaTvResponse(
@JsonProperty("streams") val streams: HashMap<String, String>? = null,
@JsonProperty("subtitles") val subtitles: ArrayList<WatchOnlineSubtitles>? = arrayListOf(),
@JsonProperty("subtitles") val subtitles: ArrayList<CinemaTvSubtitles>? = arrayListOf(),
)
data class VidsrctoResult(