From 6299dedf588ccb812a7631e610d97de27cdb7b88 Mon Sep 17 00:00:00 2001 From: hexated Date: Fri, 31 Mar 2023 12:48:57 +0700 Subject: [PATCH] sora: fixed shinobiMovie --- SoraStream/build.gradle.kts | 2 +- SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt | 2 +- SoraStream/src/main/kotlin/com/hexated/SoraUtils.kt | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/SoraStream/build.gradle.kts b/SoraStream/build.gradle.kts index 9378c665..9a95f6a6 100644 --- a/SoraStream/build.gradle.kts +++ b/SoraStream/build.gradle.kts @@ -1,5 +1,5 @@ // use an integer for version numbers -version = 110 +version = 111 cloudstream { diff --git a/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt b/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt index 20e8717a..8473ed91 100644 --- a/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt +++ b/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt @@ -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() diff --git a/SoraStream/src/main/kotlin/com/hexated/SoraUtils.kt b/SoraStream/src/main/kotlin/com/hexated/SoraUtils.kt index cd7299b1..d3af0da5 100644 --- a/SoraStream/src/main/kotlin/com/hexated/SoraUtils.kt +++ b/SoraStream/src/main/kotlin/com/hexated/SoraUtils.kt @@ -87,6 +87,11 @@ val needRefererIndex = arrayOf( "ShinobiMovies", ) +val ddomainIndex = arrayOf( + "RinzryMovies", + "ShinobiMovies" +) + val mimeType = arrayOf( "video/x-matroska", "video/mp4",