Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jackjohn committed Dec 10, 2023
1 parent 82d4855 commit e008764
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
6 changes: 3 additions & 3 deletions SoraStream/src/main/kotlin/com/hexated/SoraParser.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e008764

Please sign in to comment.