src/ar+de+es dead sources (#814)

* src/es pelisflix/seriesflix

* src/de streamcloud

* src/de movie2k

* src/de cineclix

* src/ar xsanime/xsmovie

* src/ar tuktuk

* src/ar akwam

---------

Co-authored-by: Your Name <you@example.com>
This commit is contained in:
krysanify 2025-03-25 02:30:35 +08:00 committed by GitHub
parent 0fb8c32aa6
commit 3a58bf47ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
61 changed files with 0 additions and 2551 deletions

View file

@ -1,16 +0,0 @@
ext {
extName = 'CineClix'
extClass = '.CineClix'
extVersionCode = 18
}
apply from: "$rootDir/common.gradle"
dependencies {
implementation(project(':lib:streamtape-extractor'))
implementation(project(':lib:mixdrop-extractor'))
implementation(project(':lib:dood-extractor'))
implementation(project(':lib:voe-extractor'))
implementation(project(':lib:playlist-utils'))
implementation(libs.jsunpacker)
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.2 KiB

View file

@ -1,364 +0,0 @@
package eu.kanade.tachiyomi.animeextension.de.cineclix
import android.app.Application
import android.content.SharedPreferences
import androidx.preference.ListPreference
import androidx.preference.MultiSelectListPreference
import androidx.preference.PreferenceScreen
import eu.kanade.tachiyomi.animeextension.de.cineclix.extractors.StreamVidExtractor
import eu.kanade.tachiyomi.animeextension.de.cineclix.extractors.SuperVideoExtractor
import eu.kanade.tachiyomi.animesource.ConfigurableAnimeSource
import eu.kanade.tachiyomi.animesource.model.AnimeFilterList
import eu.kanade.tachiyomi.animesource.model.AnimesPage
import eu.kanade.tachiyomi.animesource.model.SAnime
import eu.kanade.tachiyomi.animesource.model.SEpisode
import eu.kanade.tachiyomi.animesource.model.Video
import eu.kanade.tachiyomi.animesource.online.AnimeHttpSource
import eu.kanade.tachiyomi.lib.doodextractor.DoodExtractor
import eu.kanade.tachiyomi.lib.mixdropextractor.MixDropExtractor
import eu.kanade.tachiyomi.lib.streamtapeextractor.StreamTapeExtractor
import eu.kanade.tachiyomi.lib.voeextractor.VoeExtractor
import eu.kanade.tachiyomi.network.GET
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.JsonObject
import kotlinx.serialization.json.int
import kotlinx.serialization.json.jsonArray
import kotlinx.serialization.json.jsonObject
import kotlinx.serialization.json.jsonPrimitive
import okhttp3.Headers
import okhttp3.Request
import okhttp3.Response
import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.get
class CineClix : ConfigurableAnimeSource, AnimeHttpSource() {
override val name = "CineClix"
override val baseUrl = "https://cineclix.de"
override val lang = "de"
override val supportsLatest = false
private val preferences: SharedPreferences by lazy {
Injekt.get<Application>().getSharedPreferences("source_$id", 0x0000)
}
private val json = Json {
isLenient = true
ignoreUnknownKeys = true
}
override fun popularAnimeRequest(page: Int): Request = GET(
"$baseUrl/api/v1/channel/64?returnContentOnly=true&restriction=&order=rating:desc&paginate=simple&perPage=50&query=&page=$page",
headers = Headers.headersOf("referer", "$baseUrl/movies?order=rating%3Adesc"),
)
override fun popularAnimeParse(response: Response): AnimesPage {
val responseString = response.body.string()
return parsePopularAnimeJson(responseString)
}
private fun parsePopularAnimeJson(jsonLine: String?): AnimesPage {
val jsonData = jsonLine ?: return AnimesPage(emptyList(), false)
val jObject = json.decodeFromString<JsonObject>(jsonData)
val jO = jObject.jsonObject["pagination"]!!.jsonObject
val nextPage = jO.jsonObject["next_page"]!!.jsonPrimitive.int
// .substringAfter("page=").toInt()
val page = jO.jsonObject["current_page"]!!.jsonPrimitive.int
val hasNextPage = page < nextPage
val array = jO["data"]!!.jsonArray
val animeList = mutableListOf<SAnime>()
for (item in array) {
val anime = SAnime.create()
anime.title = item.jsonObject["name"]!!.jsonPrimitive.content
val animeId = item.jsonObject["id"]!!.jsonPrimitive.content
anime.setUrlWithoutDomain("$baseUrl/api/v1/titles/$animeId?load=images,genres,productionCountries,keywords,videos,primaryVideo,seasons,compactCredits")
anime.thumbnail_url = item.jsonObject["poster"]?.jsonPrimitive?.content ?: item.jsonObject["backdrop"]?.jsonPrimitive?.content
animeList.add(anime)
}
return AnimesPage(animeList, hasNextPage)
}
// episodes
override fun episodeListRequest(anime: SAnime): Request = GET(baseUrl + anime.url, headers = Headers.headersOf("referer", baseUrl))
override fun episodeListParse(response: Response): List<SEpisode> {
val responseString = response.body.string()
val url = response.request.url.toString()
return parseEpisodeAnimeJson(responseString, url)
}
private fun parseEpisodeAnimeJson(jsonLine: String?, url: String): List<SEpisode> {
val jsonData = jsonLine ?: return emptyList()
val jObject = json.decodeFromString<JsonObject>(jsonData)
val episodeList = mutableListOf<SEpisode>()
val mId = jObject.jsonObject["title"]!!.jsonObject["id"]!!.jsonPrimitive.content
val season = jObject.jsonObject["seasons"]?.jsonObject
if (season != null) {
val dataArray = season.jsonObject["data"]!!.jsonArray
val next = season.jsonObject["next_page"]?.jsonPrimitive?.content
if (next != null) {
val seNextJsonData = client.newCall(GET("$baseUrl/api/v1/titles/$mId/seasons?perPage=8&query=&page=$next", headers = Headers.headersOf("referer", baseUrl))).execute().body.string()
val seNextJObject = json.decodeFromString<JsonObject>(seNextJsonData)
val seasonNext = seNextJObject.jsonObject["pagination"]!!.jsonObject
val dataNextArray = seasonNext.jsonObject["data"]!!.jsonArray
val dataAllArray = dataArray.plus(dataNextArray)
for (item in dataAllArray) {
val id = item.jsonObject["title_id"]!!.jsonPrimitive.content
val num = item.jsonObject["number"]!!.jsonPrimitive.content
val seUrl = "$baseUrl/api/v1/titles/$id/seasons/$num?load=episodes,primaryVideo"
val seJsonData = client.newCall(GET(seUrl, headers = Headers.headersOf("referer", baseUrl))).execute().body.string()
val seJObject = json.decodeFromString<JsonObject>(seJsonData)
val epObject = seJObject.jsonObject["episodes"]!!.jsonObject
val epDataArray = epObject.jsonObject["data"]!!.jsonArray.reversed()
for (epItem in epDataArray) {
val episode = SEpisode.create()
val seNum = epItem.jsonObject["season_number"]!!.jsonPrimitive.content
val epNum = epItem.jsonObject["episode_number"]!!.jsonPrimitive.content
episode.name = "Staffel $seNum Folge $epNum : " + epItem.jsonObject["name"]!!.jsonPrimitive.content
episode.episode_number = epNum.toFloat()
val epId = epItem.jsonObject["title_id"]!!.jsonPrimitive.content
episode.setUrlWithoutDomain("$baseUrl/api/v1/titles/$epId/seasons/$seNum/episodes/$epNum?load=videos,compactCredits,primaryVideo")
episodeList.add(episode)
}
}
} else {
for (item in dataArray) {
val id = item.jsonObject["title_id"]!!.jsonPrimitive.content
val num = item.jsonObject["number"]!!.jsonPrimitive.content
val seUrl = "$baseUrl/api/v1/titles/$id/seasons/$num?load=episodes,primaryVideo"
val seJsonData = client.newCall(GET(seUrl, headers = Headers.headersOf("referer", baseUrl))).execute().body.string()
val seJObject = json.decodeFromString<JsonObject>(seJsonData)
val epObject = seJObject.jsonObject["episodes"]!!.jsonObject
val epDataArray = epObject.jsonObject["data"]!!.jsonArray.reversed()
for (epItem in epDataArray) {
val episode = SEpisode.create()
val seNum = epItem.jsonObject["season_number"]!!.jsonPrimitive.content
val epNum = epItem.jsonObject["episode_number"]!!.jsonPrimitive.content
episode.name = "Staffel $seNum Folge $epNum : " + epItem.jsonObject["name"]!!.jsonPrimitive.content
episode.episode_number = epNum.toFloat()
val epId = epItem.jsonObject["title_id"]!!.jsonPrimitive.content
episode.setUrlWithoutDomain("$baseUrl/api/v1/titles/$epId/seasons/$seNum/episodes/$epNum?load=videos,compactCredits,primaryVideo")
episodeList.add(episode)
}
}
}
} else {
val episode = SEpisode.create()
episode.episode_number = 1F
episode.name = "Film"
episode.setUrlWithoutDomain(url)
episodeList.add(episode)
}
return episodeList
}
// Video Extractor
override fun videoListRequest(episode: SEpisode): Request {
return GET(baseUrl + episode.url, headers = Headers.headersOf("referer", baseUrl))
}
override fun videoListParse(response: Response): List<Video> {
val responseString = response.body.string()
val url = response.request.url.toString()
return videosFromJson(responseString, url)
}
private fun videosFromJson(jsonLine: String?, url: String): List<Video> {
val videoList = mutableListOf<Video>()
val hosterSelection = preferences.getStringSet("hoster_selection", setOf("stape", "supv", "mix", "svid", "dood", "voe"))
val jsonData = jsonLine ?: return emptyList()
val jObject = json.decodeFromString<JsonObject>(jsonData)
if (url.contains("episodes")) {
val epObject = jObject.jsonObject["episode"]!!.jsonObject
val videoArray = epObject.jsonObject["videos"]!!.jsonArray
for (item in videoArray) {
val host = item.jsonObject["name"]!!.jsonPrimitive.content
val eUrl = item.jsonObject["src"]!!.jsonPrimitive.content
when {
host.contains("streamtape") && hosterSelection?.contains("stape") == true -> {
val quality = "Streamtape"
val video = StreamTapeExtractor(client).videoFromUrl(eUrl, quality)
if (video != null) {
videoList.add(video)
}
}
host.contains("supervideo") && hosterSelection?.contains("supv") == true -> {
val video = SuperVideoExtractor(client).videosFromUrl(eUrl)
videoList.addAll(video)
}
host.contains("mixdrop") && hosterSelection?.contains("mix") == true -> {
val video = MixDropExtractor(client).videoFromUrl(eUrl)
videoList.addAll(video)
}
host.contains("streamvid") && hosterSelection?.contains("svid") == true -> {
val video = StreamVidExtractor(client).videosFromUrl(eUrl)
videoList.addAll(video)
}
host.contains("DoodStream") && hosterSelection?.contains("dood") == true -> {
val video = DoodExtractor(client).videoFromUrl(eUrl)
if (video != null) {
videoList.add(video)
}
}
host.contains("VOE.SX") && hosterSelection?.contains("voe") == true -> {
videoList.addAll(VoeExtractor(client).videosFromUrl(eUrl))
}
}
}
} else {
val titleObject = jObject.jsonObject["title"]!!.jsonObject
val videoArray = titleObject.jsonObject["videos"]!!.jsonArray
for (item in videoArray) {
val host = item.jsonObject["name"]!!.jsonPrimitive.content
val fUrl = item.jsonObject["src"]!!.jsonPrimitive.content
when {
host.contains("streamtape") && hosterSelection?.contains("stape") == true -> {
val quality = "Streamtape"
val video = StreamTapeExtractor(client).videoFromUrl(fUrl, quality)
if (video != null) {
videoList.add(video)
}
}
host.contains("supervideo") && hosterSelection?.contains("supv") == true -> {
val video = SuperVideoExtractor(client).videosFromUrl(fUrl)
videoList.addAll(video)
}
host.contains("mixdrop") && hosterSelection?.contains("mix") == true -> {
val video = MixDropExtractor(client).videoFromUrl(fUrl)
videoList.addAll(video)
}
host.contains("streamvid") && hosterSelection?.contains("svid") == true -> {
val video = StreamVidExtractor(client).videosFromUrl(fUrl)
videoList.addAll(video)
}
host.contains("DoodStream") && hosterSelection?.contains("dood") == true -> {
val video = DoodExtractor(client).videoFromUrl(fUrl)
if (video != null) {
videoList.add(video)
}
}
host.contains("VOE.SX") && hosterSelection?.contains("voe") == true -> {
videoList.addAll(VoeExtractor(client).videosFromUrl(fUrl))
}
}
}
}
return videoList
}
override fun List<Video>.sort(): List<Video> {
val hoster = preferences.getString("preferred_hoster", null)
if (hoster != null) {
val newList = mutableListOf<Video>()
var preferred = 0
for (video in this) {
if (video.quality.contains(hoster)) {
newList.add(preferred, video)
preferred++
} else {
newList.add(video)
}
}
return newList
}
return this
}
// Search
override fun searchAnimeRequest(page: Int, query: String, filters: AnimeFilterList): Request = GET(
"$baseUrl/api/v1/search/$query?query=$query",
headers = Headers.headersOf("referer", "$baseUrl/search/$query"),
)
override fun searchAnimeParse(response: Response): AnimesPage {
val responseString = response.body.string()
return parseSearchAnimeJson(responseString)
}
private fun parseSearchAnimeJson(jsonLine: String?): AnimesPage {
val jsonData = jsonLine ?: return AnimesPage(emptyList(), false)
val jObject = json.decodeFromString<JsonObject>(jsonData)
val array = jObject["results"]!!.jsonArray
val animeList = mutableListOf<SAnime>()
for (item in array) {
val anime = SAnime.create()
anime.title = item.jsonObject["name"]!!.jsonPrimitive.content
val animeId = item.jsonObject["id"]!!.jsonPrimitive.content
anime.setUrlWithoutDomain("$baseUrl/api/v1/titles/$animeId?load=images,genres,productionCountries,keywords,videos,primaryVideo,seasons,compactCredits")
anime.thumbnail_url = item.jsonObject["poster"]?.jsonPrimitive?.content ?: item.jsonObject["backdrop"]?.jsonPrimitive?.content
animeList.add(anime)
}
return AnimesPage(animeList, hasNextPage = false)
}
// Details
override fun animeDetailsRequest(anime: SAnime): Request = GET(baseUrl + anime.url, headers = Headers.headersOf("referer", baseUrl))
override fun animeDetailsParse(response: Response): SAnime {
val responseString = response.body.string()
return parseAnimeDetailsParseJson(responseString)
}
private fun parseAnimeDetailsParseJson(jsonLine: String?): SAnime {
val anime = SAnime.create()
val jsonData = jsonLine ?: return anime
val jObject = json.decodeFromString<JsonObject>(jsonData)
val jO = jObject.jsonObject["title"]!!.jsonObject
anime.title = jO.jsonObject["name"]!!.jsonPrimitive.content
anime.description = jO.jsonObject["description"]!!.jsonPrimitive.content
val genArray = jO.jsonObject["genres"]!!.jsonArray
val genres = mutableListOf<String>()
for (item in genArray) {
val genre = item.jsonObject["display_name"]!!.jsonPrimitive.content
genres.add(genre)
}
anime.genre = genres.joinToString { it }
anime.thumbnail_url = jO.jsonObject["poster"]?.jsonPrimitive?.content ?: jO.jsonObject["backdrop"]?.jsonPrimitive?.content
return anime
}
// Latest
override fun latestUpdatesParse(response: Response): AnimesPage = throw UnsupportedOperationException()
override fun latestUpdatesRequest(page: Int): Request = throw UnsupportedOperationException()
// Preferences
override fun setupPreferenceScreen(screen: PreferenceScreen) {
val hosterPref = ListPreference(screen.context).apply {
key = "preferred_hoster"
title = "Standard-Hoster"
entries = arrayOf("Streamtape", "SuperVideo", "MixDrop", "StreamVid", "DoodStream", "Voe")
entryValues = arrayOf("https://streamtape", "https://supervideo", "https://mixdrop", "https://streamvid", "https://dood", "https://voe")
setDefaultValue("https://streamtape")
summary = "%s"
setOnPreferenceChangeListener { _, newValue ->
val selected = newValue as String
val index = findIndexOfValue(selected)
val entry = entryValues[index] as String
preferences.edit().putString(key, entry).commit()
}
}
val subSelection = MultiSelectListPreference(screen.context).apply {
key = "hoster_selection"
title = "Hoster auswählen"
entries = arrayOf("Streamtape", "SuperVideo", "MixDrop", "StreamVid", "DoodStream", "Voe")
entryValues = arrayOf("stape", "supv", "mix", "svid", "dood", "voe")
setDefaultValue(setOf("stape", "supv", "mix", "svid", "dood", "voe"))
setOnPreferenceChangeListener { _, newValue ->
preferences.edit().putStringSet(key, newValue as Set<String>).commit()
}
}
screen.addPreference(hosterPref)
screen.addPreference(subSelection)
}
}

View file

@ -1,22 +0,0 @@
package eu.kanade.tachiyomi.animeextension.de.cineclix.extractors
import dev.datlag.jsunpacker.JsUnpacker
import eu.kanade.tachiyomi.animesource.model.Video
import eu.kanade.tachiyomi.lib.playlistutils.PlaylistUtils
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.util.asJsoup
import okhttp3.OkHttpClient
class StreamVidExtractor(private val client: OkHttpClient) {
fun videosFromUrl(url: String, prefix: String = ""): List<Video> {
return runCatching {
val doc = client.newCall(GET(url)).execute().asJsoup()
val script = doc.selectFirst("script:containsData(eval):containsData(p,a,c,k,e,d)")?.data()
?.let(JsUnpacker::unpackAndCombine)
?: return emptyList()
val masterUrl = script.substringAfter("sources:[{src:\"").substringBefore("\",")
PlaylistUtils(client).extractFromHls(masterUrl, videoNameGen = { "${prefix}StreamVid - $it" })
}.getOrElse { emptyList() }
}
}

View file

@ -1,22 +0,0 @@
package eu.kanade.tachiyomi.animeextension.de.cineclix.extractors
import dev.datlag.jsunpacker.JsUnpacker
import eu.kanade.tachiyomi.animesource.model.Video
import eu.kanade.tachiyomi.lib.playlistutils.PlaylistUtils
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.util.asJsoup
import okhttp3.OkHttpClient
class SuperVideoExtractor(private val client: OkHttpClient) {
fun videosFromUrl(url: String, prefix: String = ""): List<Video> {
return runCatching {
val doc = client.newCall(GET(url)).execute().asJsoup()
val script = doc.selectFirst("script:containsData(eval):containsData(p,a,c,k,e,d)")?.data()
?.let(JsUnpacker::unpackAndCombine)
?: return emptyList()
val masterUrl = script.substringAfter("sources:[{file:\"").substringBefore("\"}]")
PlaylistUtils(client).extractFromHls(masterUrl, videoNameGen = { "${prefix}SuperVideo - $it" })
}.getOrElse { emptyList() }
}
}

View file

@ -1,14 +0,0 @@
ext {
extName = 'Movie2k'
extClass = '.Movie2k'
extVersionCode = 8
}
apply from: "$rootDir/common.gradle"
dependencies {
implementation(project(':lib:dood-extractor'))
implementation(project(':lib:streamtape-extractor'))
implementation(project(':lib:mixdrop-extractor'))
implementation(libs.jsunpacker)
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

View file

@ -1,259 +0,0 @@
package eu.kanade.tachiyomi.animeextension.de.movie2k
import android.app.Application
import android.content.SharedPreferences
import androidx.preference.ListPreference
import androidx.preference.MultiSelectListPreference
import androidx.preference.PreferenceScreen
import eu.kanade.tachiyomi.animeextension.de.movie2k.extractors.DroploadExtractor
import eu.kanade.tachiyomi.animeextension.de.movie2k.extractors.UpstreamExtractor
import eu.kanade.tachiyomi.animesource.ConfigurableAnimeSource
import eu.kanade.tachiyomi.animesource.model.AnimeFilterList
import eu.kanade.tachiyomi.animesource.model.SAnime
import eu.kanade.tachiyomi.animesource.model.SEpisode
import eu.kanade.tachiyomi.animesource.model.Video
import eu.kanade.tachiyomi.animesource.online.ParsedAnimeHttpSource
import eu.kanade.tachiyomi.lib.doodextractor.DoodExtractor
import eu.kanade.tachiyomi.lib.mixdropextractor.MixDropExtractor
import eu.kanade.tachiyomi.lib.streamtapeextractor.StreamTapeExtractor
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.util.asJsoup
import okhttp3.Request
import okhttp3.Response
import org.jsoup.nodes.Document
import org.jsoup.nodes.Element
import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.get
class Movie2k : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
override val name = "Movie2k"
override val baseUrl = "https://movie2k.skin"
override val lang = "de"
override val supportsLatest = false
private val preferences: SharedPreferences by lazy {
Injekt.get<Application>().getSharedPreferences("source_$id", 0x0000)
}
override fun popularAnimeSelector(): String = "div.item-container div.item"
override fun popularAnimeRequest(page: Int): Request = GET("$baseUrl/page/$page/")
override fun popularAnimeFromElement(element: Element): SAnime {
val anime = SAnime.create()
anime.setUrlWithoutDomain(element.select("a").attr("href"))
anime.thumbnail_url = element.select("a div.item-inner img").attr("data-src")
anime.title = element.select("a div.item-inner img").attr("alt")
return anime
}
override fun popularAnimeNextPageSelector(): String = "div.pagination a.next"
// episodes
override fun episodeListSelector() = throw UnsupportedOperationException()
override fun episodeListParse(response: Response): List<SEpisode> {
val document = response.asJsoup()
val episodeList = mutableListOf<SEpisode>()
val episode = SEpisode.create()
episode.episode_number = 1F
episode.name = "Film"
val hostdoc = client.newCall(GET(document.select("#multiplayer a").attr("href"))).execute().asJsoup()
episode.url = hostdoc.select("#video-container div.server1 iframe").attr("src")
episodeList.add(episode)
return episodeList.reversed()
}
override fun episodeFromElement(element: Element): SEpisode = throw UnsupportedOperationException()
// Video Extractor
override fun videoListRequest(episode: SEpisode): Request {
return GET(episode.url.replace(baseUrl, ""))
}
override fun videoListParse(response: Response): List<Video> {
val document = response.asJsoup()
return videosFromElement(document)
}
private fun videosFromElement(document: Document): List<Video> {
val videoList = mutableListOf<Video>()
val hosterSelection = preferences.getStringSet("hoster_selection", setOf("dood", "stape", "mix", "up", "drop"))
document.select("ul._player-mirrors li").forEach {
val purl = it.attr("data-link")
when {
purl.contains("//dood") && hosterSelection?.contains("dood") == true -> {
val quality = "Doodstream"
if (!purl.contains("https://")) {
val url = "https:$purl"
val video = DoodExtractor(client).videoFromUrl(url, quality)
if (video != null) {
videoList.add(video)
}
} else {
val video = DoodExtractor(client).videoFromUrl(purl, quality)
if (video != null) {
videoList.add(video)
}
}
}
purl.contains("//streamtape.com") && hosterSelection?.contains("stape") == true -> {
val quality = "Streamtape"
if (!purl.contains("https://")) {
val url = "https:$purl"
val video = StreamTapeExtractor(client).videoFromUrl(url, quality)
if (video != null) {
videoList.add(video)
}
} else {
val video = StreamTapeExtractor(client).videoFromUrl(purl, quality)
if (video != null) {
videoList.add(video)
}
}
}
purl.contains("//mixdrop") && hosterSelection?.contains("mix") == true -> {
if (!purl.contains("https://")) {
val url = "https:$purl"
val videos = MixDropExtractor(client).videoFromUrl(url)
videoList.addAll(videos)
} else {
val videos = MixDropExtractor(client).videoFromUrl(purl)
videoList.addAll(videos)
}
}
purl.contains("//upstream") && hosterSelection?.contains("up") == true -> {
if (!purl.contains("https://")) {
val url = "https:$purl"
val videos = UpstreamExtractor(client).videoFromUrl(url)
if (videos != null) {
videoList.addAll(videos)
}
} else {
val videos = UpstreamExtractor(client).videoFromUrl(purl)
if (videos != null) {
videoList.addAll(videos)
}
}
}
purl.contains("//dropload") && hosterSelection?.contains("drop") == true -> {
if (!purl.contains("https://")) {
val url = "https:$purl"
val videos = DroploadExtractor(client).videoFromUrl(url)
if (videos != null) {
videoList.addAll(videos)
}
} else {
val videos = DroploadExtractor(client).videoFromUrl(purl)
if (videos != null) {
videoList.addAll(videos)
}
}
}
}
}
return videoList
}
override fun List<Video>.sort(): List<Video> {
val hoster = preferences.getString("preferred_hoster", null)
if (hoster != null) {
val newList = mutableListOf<Video>()
var preferred = 0
for (video in this) {
if (video.quality.contains(hoster)) {
newList.add(preferred, video)
preferred++
} else {
newList.add(video)
}
}
return newList
}
return this
}
override fun videoListSelector() = throw UnsupportedOperationException()
override fun videoFromElement(element: Element) = throw UnsupportedOperationException()
override fun videoUrlParse(document: Document) = throw UnsupportedOperationException()
// Search
override fun searchAnimeFromElement(element: Element): SAnime {
val anime = SAnime.create()
anime.setUrlWithoutDomain(element.select("a").attr("href"))
anime.thumbnail_url = element.select("a div.item-inner img").attr("data-src")
anime.title = element.select("a div.item-inner img").attr("alt")
return anime
}
override fun searchAnimeNextPageSelector(): String = "div.pagination a.next"
override fun searchAnimeSelector(): String = "div.item-container div.item"
override fun searchAnimeRequest(page: Int, query: String, filters: AnimeFilterList): Request = GET("$baseUrl/page/$page/?s=$query")
// Details
override fun animeDetailsParse(document: Document): SAnime {
val anime = SAnime.create()
anime.thumbnail_url = document.select("div.movie-image img").attr("src")
anime.title = document.select("div.movie-image img").attr("alt")
anime.description = document.select("p.movie-description span").text()
anime.author = document.select("span[itemprop=\"director\"] a").joinToString(", ") { it.text() }
anime.genre = document.select("span[itemprop=\"genre\"] a").joinToString(", ") { it.text() }
anime.status = SAnime.COMPLETED
return anime
}
// Latest
override fun latestUpdatesNextPageSelector(): String = throw UnsupportedOperationException()
override fun latestUpdatesFromElement(element: Element): SAnime = throw UnsupportedOperationException()
override fun latestUpdatesRequest(page: Int): Request = throw UnsupportedOperationException()
override fun latestUpdatesSelector(): String = throw UnsupportedOperationException()
// Preferences
override fun setupPreferenceScreen(screen: PreferenceScreen) {
val hosterPref = ListPreference(screen.context).apply {
key = "preferred_hoster"
title = "Standard-Hoster"
entries = arrayOf("Doodstream", "Streamtape", "Mixdrop", "Upstream", "Dropload")
entryValues = arrayOf("https://dood", "https://streamtape", "https://mixdrop", "https://upstream", "https://dropload")
setDefaultValue("https://dood")
summary = "%s"
setOnPreferenceChangeListener { _, newValue ->
val selected = newValue as String
val index = findIndexOfValue(selected)
val entry = entryValues[index] as String
preferences.edit().putString(key, entry).commit()
}
}
val subSelection = MultiSelectListPreference(screen.context).apply {
key = "hoster_selection"
title = "Hoster auswählen"
entries = arrayOf("Doodstream", "Streamtape", "MixDrop", "Upstream", "Dropload")
entryValues = arrayOf("dood", "stape", "mix", "up", "drop")
setDefaultValue(setOf("dood", "stape", "mix", "up", "drop"))
setOnPreferenceChangeListener { _, newValue ->
preferences.edit().putStringSet(key, newValue as Set<String>).commit()
}
}
screen.addPreference(hosterPref)
screen.addPreference(subSelection)
}
}

View file

@ -1,31 +0,0 @@
package eu.kanade.tachiyomi.animeextension.de.movie2k.extractors
import dev.datlag.jsunpacker.JsUnpacker
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 DroploadExtractor(private val client: OkHttpClient) {
fun videoFromUrl(url: String): MutableList<Video>? {
try {
val jsE = client.newCall(GET(url)).execute().asJsoup().selectFirst("script:containsData(eval)")!!.data()
val masterUrl = JsUnpacker.unpackAndCombine(jsE).toString()
.substringAfter("{file:\"").substringBefore("\"}")
val masterBase = masterUrl.substringBefore("master")
val masterPlaylist = client.newCall(GET(masterUrl)).execute().body.string()
val videoList = mutableListOf<Video>()
masterPlaylist.substringAfter("#EXT-X-STREAM-INF:").split("#EXT-X-STREAM-INF:")
.forEach {
val quality = "Dropload:" + it.substringAfter("RESOLUTION=").substringAfter("x").substringBefore(",") + "p "
val videoUrl = masterBase + it.substringAfter("\n").substringBefore("\n")
videoList.add(Video(videoUrl, quality, videoUrl, headers = Headers.headersOf("origin", "https://dropload.io", "referer", "https://dropload.io/")))
}
return videoList
} catch (e: Exception) {
return null
}
}
}

View file

@ -1,31 +0,0 @@
package eu.kanade.tachiyomi.animeextension.de.movie2k.extractors
import dev.datlag.jsunpacker.JsUnpacker
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 UpstreamExtractor(private val client: OkHttpClient) {
fun videoFromUrl(url: String): MutableList<Video>? {
try {
val jsE = client.newCall(GET(url)).execute().asJsoup().selectFirst("script:containsData(eval)")!!.data()
val masterUrl = JsUnpacker.unpackAndCombine(jsE).toString()
.substringAfter("{file:\"").substringBefore("\"}")
val masterBase = masterUrl.substringBefore("master")
val masterPlaylist = client.newCall(GET(masterUrl)).execute().body.string()
val videoList = mutableListOf<Video>()
masterPlaylist.substringAfter("#EXT-X-STREAM-INF:").split("#EXT-X-STREAM-INF:")
.forEach {
val quality = "Upstream:" + it.substringAfter("RESOLUTION=").substringAfter("x").substringBefore(",") + "p "
val videoUrl = masterBase + it.substringAfter("\n").substringBefore("\n")
videoList.add(Video(videoUrl, quality, videoUrl, headers = Headers.headersOf("origin", "https://upstream.to", "referer", "https://upstream.to/")))
}
return videoList
} catch (e: Exception) {
return null
}
}
}

View file

@ -1,13 +0,0 @@
ext {
extName = 'StreamCloud'
extClass = '.StreamCloud'
extVersionCode = 10
}
apply from: "$rootDir/common.gradle"
dependencies {
implementation(project(':lib:dood-extractor'))
implementation(project(':lib:streamtape-extractor'))
implementation(project(':lib:mixdrop-extractor'))
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

View file

@ -1,198 +0,0 @@
package eu.kanade.tachiyomi.animeextension.de.streamcloud
import android.app.Application
import androidx.preference.ListPreference
import androidx.preference.MultiSelectListPreference
import androidx.preference.PreferenceScreen
import eu.kanade.tachiyomi.animesource.ConfigurableAnimeSource
import eu.kanade.tachiyomi.animesource.model.AnimeFilterList
import eu.kanade.tachiyomi.animesource.model.SAnime
import eu.kanade.tachiyomi.animesource.model.SEpisode
import eu.kanade.tachiyomi.animesource.model.Video
import eu.kanade.tachiyomi.animesource.online.ParsedAnimeHttpSource
import eu.kanade.tachiyomi.lib.doodextractor.DoodExtractor
import eu.kanade.tachiyomi.lib.mixdropextractor.MixDropExtractor
import eu.kanade.tachiyomi.lib.streamtapeextractor.StreamTapeExtractor
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.util.asJsoup
import okhttp3.Response
import org.jsoup.nodes.Document
import org.jsoup.nodes.Element
import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.get
class StreamCloud : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
override val name = "StreamCloud"
override val baseUrl = "https://streamcloud.movie"
override val lang = "de"
override val supportsLatest = false
private val preferences by lazy {
Injekt.get<Application>().getSharedPreferences("source_$id", 0x0000)
}
// ============================== Popular ===============================
override fun popularAnimeRequest(page: Int) = GET("$baseUrl/beliebte-filme/")
override fun popularAnimeSelector() = "div#dle-content > div.item > div.thumb > a"
override fun popularAnimeFromElement(element: Element) = SAnime.create().apply {
setUrlWithoutDomain(element.attr("href"))
element.selectFirst("img")!!.run {
thumbnail_url = absUrl("src")
title = attr("alt")
}
}
override fun popularAnimeNextPageSelector() = null
// =============================== Latest ===============================
override fun latestUpdatesNextPageSelector() = throw UnsupportedOperationException()
override fun latestUpdatesFromElement(element: Element) = throw UnsupportedOperationException()
override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException()
override fun latestUpdatesSelector() = throw UnsupportedOperationException()
// =============================== Search ===============================
override fun searchAnimeRequest(page: Int, query: String, filters: AnimeFilterList) =
GET("$baseUrl/index.php?do=search&subaction=search&search_start=$page&full_search=0&story=$query")
override fun searchAnimeSelector() = popularAnimeSelector()
override fun searchAnimeFromElement(element: Element) = popularAnimeFromElement(element)
override fun searchAnimeNextPageSelector() = "#nextlink"
// =========================== Anime Details ============================
override fun animeDetailsParse(document: Document) = SAnime.create().apply {
title = document.selectFirst("#title span.title")!!.text()
status = SAnime.COMPLETED
with(document.selectFirst("div#longInfo")!!) {
thumbnail_url = selectFirst("img")?.absUrl("src")
genre = selectFirst("span.masha_index10")?.let {
it.text().split("/").joinToString()
}
description = select("#storyline > span > p").eachText().joinToString("\n")
author = selectFirst("strong:contains(Regie:) + div > a")?.text()
}
}
// ============================== Episodes ==============================
override fun episodeListParse(response: Response): List<SEpisode> {
val document = response.asJsoup()
val episode = SEpisode.create().apply {
name = document.selectFirst("#title span.title")!!.text()
episode_number = 1F
setUrlWithoutDomain(document.location())
}
return listOf(episode)
}
override fun episodeListSelector() = throw UnsupportedOperationException()
override fun episodeFromElement(element: Element): SEpisode = throw UnsupportedOperationException()
// ============================ Video Links =============================
private val streamtapeExtractor by lazy { StreamTapeExtractor(client) }
private val doodExtractor by lazy { DoodExtractor(client) }
private val mixdropExtractor by lazy { MixDropExtractor(client) }
override fun videoListParse(response: Response): List<Video> {
val document = response.asJsoup()
val iframeurl = document.selectFirst("div.player-container-wrap > iframe")
?.attr("src")
?: error("No videos!")
val iframeDoc = client.newCall(GET(iframeurl)).execute().asJsoup()
val hosterSelection = preferences.getStringSet(PREF_HOSTER_SELECTION_KEY, PREF_HOSTER_SELECTION_DEFAULT)!!
val items = iframeDoc.select("div._player ul._player-mirrors li")
return items.flatMap { element ->
val url = element.attr("data-link").run {
takeIf { startsWith("https") }
?: "https:$this"
}
runCatching {
when {
url.contains("streamtape") && hosterSelection.contains("stape") -> {
streamtapeExtractor.videosFromUrl(url)
}
url.startsWith("https://dood") && hosterSelection.contains("dood") -> {
doodExtractor.videosFromUrl(url)
}
url.contains("mixdrop.") && hosterSelection.contains("mixdrop") -> {
mixdropExtractor.videosFromUrl(url)
}
else -> emptyList()
}
}.getOrElse { emptyList() }
}
}
override fun List<Video>.sort(): List<Video> {
val hoster = preferences.getString(PREF_HOSTER_KEY, PREF_HOSTER_DEFAULT)!!
return sortedWith(
compareBy { it.url.contains(hoster) },
).reversed()
}
override fun videoListSelector() = throw UnsupportedOperationException()
override fun videoFromElement(element: Element) = throw UnsupportedOperationException()
override fun videoUrlParse(document: Document) = throw UnsupportedOperationException()
// ============================== Settings ==============================
override fun setupPreferenceScreen(screen: PreferenceScreen) {
ListPreference(screen.context).apply {
key = PREF_HOSTER_KEY
title = PREF_HOSTER_TITLE
entries = PREF_HOSTER_ENTRIES
entryValues = PREF_HOSTER_VALUES
setDefaultValue(PREF_HOSTER_DEFAULT)
summary = "%s"
setOnPreferenceChangeListener { _, newValue ->
val selected = newValue as String
val index = findIndexOfValue(selected)
val entry = entryValues[index] as String
preferences.edit().putString(key, entry).commit()
}
}.also(screen::addPreference)
MultiSelectListPreference(screen.context).apply {
key = PREF_HOSTER_SELECTION_KEY
title = PREF_HOSTER_SELECTION_TITLE
entries = PREF_HOSTER_SELECTION_ENTRIES
entryValues = PREF_HOSTER_SELECTION_VALUES
setDefaultValue(PREF_HOSTER_SELECTION_DEFAULT)
setOnPreferenceChangeListener { _, newValue ->
@Suppress("UNCHECKED_CAST")
preferences.edit().putStringSet(key, newValue as Set<String>).commit()
}
}.also(screen::addPreference)
}
companion object {
private const val PREF_HOSTER_KEY = "preferred_hoster"
private const val PREF_HOSTER_TITLE = "Standard-Hoster"
private const val PREF_HOSTER_DEFAULT = "https://streamtape.com"
private val PREF_HOSTER_ENTRIES = arrayOf("Streamtape", "DoodStream")
private val PREF_HOSTER_VALUES = arrayOf("https://streamtape.com", "https://dood.")
private const val PREF_HOSTER_SELECTION_KEY = "hoster_selection"
private const val PREF_HOSTER_SELECTION_TITLE = "Hoster auswählen"
private val PREF_HOSTER_SELECTION_ENTRIES = arrayOf("Streamtape", "DoodStream", "MixDrop")
private val PREF_HOSTER_SELECTION_VALUES = arrayOf("stape", "dood", "mixdrop")
private val PREF_HOSTER_SELECTION_DEFAULT by lazy { PREF_HOSTER_SELECTION_VALUES.toSet() }
}
}