diff --git a/src/es/detodopeliculas/build.gradle b/src/es/detodopeliculas/build.gradle new file mode 100644 index 0000000000..9acc2e4dc1 --- /dev/null +++ b/src/es/detodopeliculas/build.gradle @@ -0,0 +1,18 @@ +ext { + extName = 'DeTodoPeliculas' + extClass = '.DeTodoPeliculas' + themePkg = 'dooplay' + baseUrl = 'https://detodopeliculas.nu' + overrideVersionCode = 0 +} + +apply from: "$rootDir/common.gradle" + +dependencies { + implementation(project(":lib:streamwish-extractor")) + implementation(project(":lib:uqload-extractor")) + implementation(project(":lib:universal-extractor")) + implementation(project(':lib:streamhidevid-extractor')) + implementation(project(':lib:vidguard-extractor')) + implementation(project(':lib:voe-extractor')) +} \ No newline at end of file diff --git a/src/es/detodopeliculas/res/mipmap-hdpi/ic_launcher.png b/src/es/detodopeliculas/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000000..d3be7cb5eb Binary files /dev/null and b/src/es/detodopeliculas/res/mipmap-hdpi/ic_launcher.png differ diff --git a/src/es/detodopeliculas/res/mipmap-mdpi/ic_launcher.png b/src/es/detodopeliculas/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000000..37e830f87d Binary files /dev/null and b/src/es/detodopeliculas/res/mipmap-mdpi/ic_launcher.png differ diff --git a/src/es/detodopeliculas/res/mipmap-xhdpi/ic_launcher.png b/src/es/detodopeliculas/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000000..4dbe71d70e Binary files /dev/null and b/src/es/detodopeliculas/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/src/es/detodopeliculas/res/mipmap-xxhdpi/ic_launcher.png b/src/es/detodopeliculas/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000000..5e55f78bc4 Binary files /dev/null and b/src/es/detodopeliculas/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/src/es/detodopeliculas/res/mipmap-xxxhdpi/ic_launcher.png b/src/es/detodopeliculas/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000000..caa2b46da6 Binary files /dev/null and b/src/es/detodopeliculas/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/src/es/detodopeliculas/src/eu/kanade/tachiyomi/animeextension/es/detodopeliculas/DeTodoPeliculas.kt b/src/es/detodopeliculas/src/eu/kanade/tachiyomi/animeextension/es/detodopeliculas/DeTodoPeliculas.kt new file mode 100644 index 0000000000..2f1ad2451b --- /dev/null +++ b/src/es/detodopeliculas/src/eu/kanade/tachiyomi/animeextension/es/detodopeliculas/DeTodoPeliculas.kt @@ -0,0 +1,205 @@ +package eu.kanade.tachiyomi.animeextension.es.detodopeliculas + +import androidx.preference.ListPreference +import androidx.preference.PreferenceScreen +import eu.kanade.tachiyomi.animesource.model.AnimeFilterList +import eu.kanade.tachiyomi.animesource.model.Video +import eu.kanade.tachiyomi.lib.streamhidevidextractor.StreamHideVidExtractor +import eu.kanade.tachiyomi.lib.streamwishextractor.StreamWishExtractor +import eu.kanade.tachiyomi.lib.universalextractor.UniversalExtractor +import eu.kanade.tachiyomi.lib.uqloadextractor.UqloadExtractor +import eu.kanade.tachiyomi.lib.vidguardextractor.VidGuardExtractor +import eu.kanade.tachiyomi.lib.voeextractor.VoeExtractor +import eu.kanade.tachiyomi.multisrc.dooplay.DooPlay +import eu.kanade.tachiyomi.network.GET +import eu.kanade.tachiyomi.network.POST +import eu.kanade.tachiyomi.util.asJsoup +import eu.kanade.tachiyomi.util.parallelFlatMapBlocking +import okhttp3.FormBody +import okhttp3.Request +import okhttp3.Response +import org.jsoup.nodes.Element + +class DeTodoPeliculas : DooPlay( + "es", + "DeTodo Peliculas", + "https://detodopeliculas.nu", +) { +// ============================== Popular =============================== + override fun popularAnimeRequest(page: Int) = GET("$baseUrl/novedades/page/$page") + + override fun popularAnimeSelector() = latestUpdatesSelector() + + override fun popularAnimeNextPageSelector() = latestUpdatesNextPageSelector() + + override fun latestUpdatesRequest(page: Int) = GET("$baseUrl/peliculas-de-estreno/page/$page", headers) + + override fun videoListSelector() = "li.dooplay_player_option" // ul#playeroptionsul + + override val episodeMovieText = "Película" + + override val episodeSeasonPrefix = "Temporada" + override val prefQualityTitle = "Calidad preferida" + + private val uqloadExtractor by lazy { UqloadExtractor(client) } + private val streamWishExtractor by lazy { StreamWishExtractor(client, headers) } + private val universalExtractor by lazy { UniversalExtractor(client) } + private val streamHideVidExtractor by lazy { StreamHideVidExtractor(client, headers) } + private val vidGuardExtractor by lazy { VidGuardExtractor(client) } + private val voeExtractor by lazy { VoeExtractor(client) } + +// ============================ Video Links ============================= + override fun videoListParse(response: Response): List