From 9524d8379076c1db80925ced6a4d3c0dd8086bdc Mon Sep 17 00:00:00 2001 From: Claudemirovsky <63046606+Claudemirovsky@users.noreply.github.com> Date: Fri, 3 Nov 2023 14:29:05 -0300 Subject: [PATCH] feat(de/cinemathek): Add more video extractors (#2469) --- .../dooplay/cinemathek/additional.gradle | 3 +- .../dooplay/cinemathek/src/Cinemathek.kt | 57 ++++++++++++------- .../src/extractors/StreamHideExtractor.kt | 45 --------------- .../multisrc/dooplay/DooPlayGenerator.kt | 2 +- 4 files changed, 40 insertions(+), 67 deletions(-) delete mode 100644 multisrc/overrides/dooplay/cinemathek/src/extractors/StreamHideExtractor.kt diff --git a/multisrc/overrides/dooplay/cinemathek/additional.gradle b/multisrc/overrides/dooplay/cinemathek/additional.gradle index d69c705555..af1d3feffa 100644 --- a/multisrc/overrides/dooplay/cinemathek/additional.gradle +++ b/multisrc/overrides/dooplay/cinemathek/additional.gradle @@ -2,5 +2,6 @@ dependencies { implementation(project(':lib-filemoon-extractor')) implementation(project(':lib-dood-extractor')) implementation(project(':lib-streamlare-extractor')) - implementation("dev.datlag.jsunpacker:jsunpacker:1.0.1") + implementation(project(':lib-streamtape-extractor')) + implementation(project(':lib-streamwish-extractor')) } diff --git a/multisrc/overrides/dooplay/cinemathek/src/Cinemathek.kt b/multisrc/overrides/dooplay/cinemathek/src/Cinemathek.kt index 1791bcd789..40e7086f71 100644 --- a/multisrc/overrides/dooplay/cinemathek/src/Cinemathek.kt +++ b/multisrc/overrides/dooplay/cinemathek/src/Cinemathek.kt @@ -3,19 +3,22 @@ package eu.kanade.tachiyomi.animeextension.de.cinemathek import androidx.preference.ListPreference import androidx.preference.MultiSelectListPreference import androidx.preference.PreferenceScreen -import eu.kanade.tachiyomi.animeextension.de.cinemathek.extractors.StreamHideExtractor import eu.kanade.tachiyomi.animesource.model.Video import eu.kanade.tachiyomi.lib.doodextractor.DoodExtractor import eu.kanade.tachiyomi.lib.filemoonextractor.FilemoonExtractor import eu.kanade.tachiyomi.lib.streamlareextractor.StreamlareExtractor +import eu.kanade.tachiyomi.lib.streamtapeextractor.StreamTapeExtractor +import eu.kanade.tachiyomi.lib.streamwishextractor.StreamWishExtractor import eu.kanade.tachiyomi.multisrc.dooplay.DooPlay import eu.kanade.tachiyomi.network.GET import eu.kanade.tachiyomi.util.asJsoup -import okhttp3.Request +import kotlinx.coroutines.Dispatchers +import kotlinx.coroutines.async +import kotlinx.coroutines.awaitAll +import kotlinx.coroutines.runBlocking import okhttp3.Response import org.jsoup.nodes.Document import org.jsoup.nodes.Element -import uy.kohesive.injekt.api.get class Cinemathek : DooPlay( "de", @@ -23,15 +26,15 @@ class Cinemathek : DooPlay( "https://cinemathek.net", ) { // ============================== Popular =============================== - override fun popularAnimeSelector(): String = "article.movies div.poster" + override fun popularAnimeSelector() = "article.movies div.poster" - override fun popularAnimeRequest(page: Int): Request = GET("$baseUrl/filme/page/$page/") + override fun popularAnimeRequest(page: Int) = GET("$baseUrl/filme/page/$page/") override fun popularAnimeNextPageSelector() = latestUpdatesNextPageSelector() // =============================== Latest =============================== - override fun latestUpdatesNextPageSelector(): String = "#nextpagination" - override fun latestUpdatesRequest(page: Int): Request = GET("$baseUrl/episoden/page/$page") + override fun latestUpdatesNextPageSelector() = "#nextpagination" + override fun latestUpdatesRequest(page: Int) = GET("$baseUrl/episoden/page/$page") // =========================== Anime Details ============================ override val additionalInfoItems = listOf("Original", "Start", "Staffeln", "letzte", "Episoden") @@ -46,9 +49,9 @@ class Cinemathek : DooPlay( override fun videoListParse(response: Response): List