Skip to content

Commit

Permalink
fix Rabbitstream (#573)
Browse files Browse the repository at this point in the history
Co-authored-by: Sofie99 <Sofie99@gmail.com>
  • Loading branch information
Sofie99 and Sofie99 authored Aug 25, 2023
1 parent b38a9b1 commit 2d82480
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ open class Rabbitstream : ExtractorApi() {
override val requiresReferer = false
open val embed = "ajax/embed-4"
open val key = "https://raw.githubusercontent.com/enimax-anime/key/e4/key.txt"
private var rawKey: String? = null

override suspend fun getUrl(
url: String,
Expand Down Expand Up @@ -82,9 +81,10 @@ open class Rabbitstream : ExtractorApi() {
)
}


}

private suspend fun getRawKey(): String = rawKey ?: app.get(key).text.also { rawKey = it }
private suspend fun getRawKey(): String = app.get(key).text

private fun extractRealKey(originalString: String?, stops: String): Pair<String, String> {
val table = parseJson<List<List<Int>>>(stops)
Expand Down

0 comments on commit 2d82480

Please sign in to comment.