-
Notifications
You must be signed in to change notification settings - Fork 485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extractor: added Rabbitstream #536
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool 👍
Just a minor code quality and link need changing
callback: (ExtractorLink) -> Unit | ||
) { | ||
val id = url.substringAfterLast("/").substringBefore("?") | ||
val rawKey = app.get(key).text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be cached with smth like
private var rawKey : String? = null
suspend fun getRawKey() : String = rawKey ?: app.get(key).text.also { rawKey = it }
private fun decryptSourceUrl(decryptionKey: ByteArray, sourceUrl: String): String { | ||
val cipherData = base64DecodeArray(sourceUrl) | ||
val encrypted = cipherData.copyOfRange(16, cipherData.size) | ||
val aesCBC = Cipher.getInstance("AES/CBC/PKCS5Padding") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add ?: throw ErrorLoadingExeption("Cipher not found")
so you dont need to do Objects.requireNonNull and !! later
override val mainUrl = "https://dokicloud.one" | ||
} | ||
|
||
open class Rabbitstream : ExtractorApi() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like you are using something related to https://github.com/enimax-anime/enimax please add some sort of link to that in the top of the file along with the licence of enimax
Ready to merge |
fix sflix bundle aswell