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
version = 110
version = 111
cloudstream {

View File

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

View File

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