sora: fixed shinobiMovie

This commit is contained in:
hexated 2023-03-31 12:48:57 +07:00
parent d8b7d44a36
commit 6299dedf58
3 changed files with 7 additions and 2 deletions

View file

@ -1,5 +1,5 @@
// use an integer for version numbers // use an integer for version numbers
version = 110 version = 111
cloudstream { cloudstream {

View file

@ -2426,7 +2426,7 @@ object SoraExtractor : SoraStream() {
} else { } else {
app.post("${apiUrl}id2path", requestBody = pathBody, referer = apiUrl) app.post("${apiUrl}id2path", requestBody = pathBody, referer = apiUrl)
}).text.let { path -> }).text.let { path ->
if (api == "RinzryMovies") { if (api in ddomainIndex) {
val worker = app.get( val worker = app.get(
"${fixUrl(path, apiUrl)}?a=view" "${fixUrl(path, apiUrl)}?a=view"
).document.selectFirst("script:containsData(downloaddomain)")?.data() ).document.selectFirst("script:containsData(downloaddomain)")?.data()

View file

@ -87,6 +87,11 @@ val needRefererIndex = arrayOf(
"ShinobiMovies", "ShinobiMovies",
) )
val ddomainIndex = arrayOf(
"RinzryMovies",
"ShinobiMovies"
)
val mimeType = arrayOf( val mimeType = arrayOf(
"video/x-matroska", "video/x-matroska",
"video/mp4", "video/mp4",