From 0dcb92cc0270643f815092e6753f4ab4c696f476 Mon Sep 17 00:00:00 2001 From: Dark25 Date: Sat, 17 Aug 2024 02:01:54 +0200 Subject: [PATCH] Feat(es/Hackstore): Add GoodStreamExtractor --- lib/goodstream-extractor/build.gradle.kts | 3 ++ .../goodstramextractor/GoodStreamExtractor.kt | 33 +++++++++++++++++++ src/es/hackstore/build.gradle | 3 +- .../animeextension/es/hackstore/Hackstore.kt | 7 +++- 4 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 lib/goodstream-extractor/build.gradle.kts create mode 100644 lib/goodstream-extractor/src/main/java/eu/kanade/tachiyomi/lib/goodstramextractor/GoodStreamExtractor.kt diff --git a/lib/goodstream-extractor/build.gradle.kts b/lib/goodstream-extractor/build.gradle.kts new file mode 100644 index 0000000000..c26cbc8a82 --- /dev/null +++ b/lib/goodstream-extractor/build.gradle.kts @@ -0,0 +1,3 @@ +plugins { + id("lib-android") +} diff --git a/lib/goodstream-extractor/src/main/java/eu/kanade/tachiyomi/lib/goodstramextractor/GoodStreamExtractor.kt b/lib/goodstream-extractor/src/main/java/eu/kanade/tachiyomi/lib/goodstramextractor/GoodStreamExtractor.kt new file mode 100644 index 0000000000..208a985164 --- /dev/null +++ b/lib/goodstream-extractor/src/main/java/eu/kanade/tachiyomi/lib/goodstramextractor/GoodStreamExtractor.kt @@ -0,0 +1,33 @@ +package eu.kanade.tachiyomi.lib.goodstramextractor + +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 GoodStreamExtractor(private val client: OkHttpClient, private val headers: Headers) { + + fun videosFromUrl(url: String, name: String): List