Skip to content
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

chore(ar/mycima): refactor + add more servers #3309

Merged
merged 17 commits into from
Jun 9, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ package eu.kanade.tachiyomi.lib.vidbomextractor
import eu.kanade.tachiyomi.animesource.model.Video
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.util.asJsoup
import okhttp3.Headers
import okhttp3.OkHttpClient

class VidBomExtractor(private val client: OkHttpClient) {
fun videosFromUrl(url: String): List<Video> {
val doc = client.newCall(GET(url)).execute().asJsoup()
fun videosFromUrl(url: String, headers: Headers? = null): List<Video> {
val request = if (headers != null) GET(url, headers) else GET(url)
val doc = client.newCall(request).execute().asJsoup()
val script = doc.selectFirst("script:containsData(sources)")!!
val data = script.data().substringAfter("sources: [").substringBefore("],")

Expand Down
7 changes: 5 additions & 2 deletions src/ar/mycima/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
ext {
extName = 'MY CIMA'
extClass = '.MyCima'
extVersionCode = 20
extVersionCode = 21
}

apply from: "$rootDir/common.gradle"

dependencies {
implementation(project(':lib:uqload-extractor'))
}
implementation(project(':lib:vidbom-extractor'))
implementation(project(':lib:dood-extractor'))
implementation(project(':lib:okru-extractor'))
}
Loading