diff --git a/src/es/jkhentai/AndroidManifest.xml b/src/es/jkhentai/AndroidManifest.xml
new file mode 100644
index 000000000..acb4de356
--- /dev/null
+++ b/src/es/jkhentai/AndroidManifest.xml
@@ -0,0 +1,2 @@
+
+
\ No newline at end of file
diff --git a/src/es/jkhentai/build.gradle b/src/es/jkhentai/build.gradle
new file mode 100644
index 000000000..6a9cd3177
--- /dev/null
+++ b/src/es/jkhentai/build.gradle
@@ -0,0 +1,12 @@
+apply plugin: 'com.android.application'
+apply plugin: 'kotlin-android'
+
+ext {
+ extName = 'Jkhentai'
+ pkgNameSuffix = 'es.jkhentai'
+ extClass = '.Jkhentai'
+ extVersionCode = 1
+ libVersion = '12'
+}
+
+apply from: "$rootDir/common.gradle"
diff --git a/src/es/jkhentai/res/mipmap-hdpi/ic_launcher.png b/src/es/jkhentai/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 000000000..131d077f0
Binary files /dev/null and b/src/es/jkhentai/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/src/es/jkhentai/res/mipmap-mdpi/ic_launcher.png b/src/es/jkhentai/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 000000000..131d077f0
Binary files /dev/null and b/src/es/jkhentai/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/src/es/jkhentai/res/mipmap-xhdpi/ic_launcher.png b/src/es/jkhentai/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 000000000..131d077f0
Binary files /dev/null and b/src/es/jkhentai/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/src/es/jkhentai/res/mipmap-xxhdpi/ic_launcher.png b/src/es/jkhentai/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 000000000..131d077f0
Binary files /dev/null and b/src/es/jkhentai/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/src/es/jkhentai/res/mipmap-xxxhdpi/ic_launcher.png b/src/es/jkhentai/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 000000000..131d077f0
Binary files /dev/null and b/src/es/jkhentai/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/src/es/jkhentai/src/eu/kanade/tachiyomi/animeextension/es/jkhentai/Jkhentai.kt b/src/es/jkhentai/src/eu/kanade/tachiyomi/animeextension/es/jkhentai/Jkhentai.kt
new file mode 100644
index 000000000..cd3c10971
--- /dev/null
+++ b/src/es/jkhentai/src/eu/kanade/tachiyomi/animeextension/es/jkhentai/Jkhentai.kt
@@ -0,0 +1,242 @@
+package eu.kanade.tachiyomi.animeextension.es.jkhentai
+
+import android.app.Application
+import android.content.SharedPreferences
+import android.util.Log
+import androidx.preference.ListPreference
+import androidx.preference.PreferenceScreen
+import eu.kanade.tachiyomi.animeextension.es.jkhentai.extractors.StreamTapeExtractor
+import eu.kanade.tachiyomi.animesource.ConfigurableAnimeSource
+import eu.kanade.tachiyomi.animesource.model.AnimeFilter
+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.network.GET
+import eu.kanade.tachiyomi.util.asJsoup
+import okhttp3.OkHttpClient
+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
+import java.lang.Exception
+
+class Jkhentai : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
+
+ override val name = "Jkhentai"
+
+ override val baseUrl = "https://www.jkhentai.net"
+
+ override val lang = "es"
+
+ override val supportsLatest = false
+
+ override val client: OkHttpClient = network.cloudflareClient
+
+ private val preferences: SharedPreferences by lazy {
+ Injekt.get().getSharedPreferences("source_$id", 0x0000)
+ }
+
+ override fun popularAnimeSelector(): String = "div#contenedor div.items div#directorio div#box_movies div.movie"
+
+ override fun popularAnimeRequest(page: Int): Request = GET("https://www.jkhentai.net/lista/$page")
+
+ override fun popularAnimeFromElement(element: Element): SAnime {
+ val anime = SAnime.create()
+ anime.setUrlWithoutDomain(
+ element.select("div.imagen a").attr("href")
+ )
+ anime.title = element.select("h2").text()
+ anime.thumbnail_url = element.select("div.imagen img").attr("src")
+ return anime
+ }
+
+ override fun popularAnimeNextPageSelector(): String = "a.page.larger"
+
+ override fun episodeListParse(response: Response): List {
+ val episodes = mutableListOf()
+
+ val jsoup = response.asJsoup()
+ val animeId = response.request.url.pathSegments.last().replace("-sub-espanol", "").replace("-080p", "-1080p")
+ Log.i("bruh", "$animeId")
+ jsoup.select("div#contenedor div.items.ptts div#movie div.post div#cssmenu ul li.has-sub.open ul li").forEach { it ->
+ Log.i("bruh", "e")
+
+ val epNum = it.select("a").attr("href").replace("https://www.jkhentai.net/ver/$animeId-", "")
+ Log.i("bruh", "Episode-$epNum")
+ val episode = SEpisode.create().apply {
+ episode_number = epNum.toFloat()
+ name = "Episodio $epNum"
+ url = "/ver/$animeId-$epNum"
+ date_upload = System.currentTimeMillis()
+ }
+ episodes.add(episode)
+ }
+
+ return episodes
+ }
+
+ override fun episodeListSelector() = throw Exception("not used")
+
+ override fun episodeFromElement(element: Element) = throw Exception("not used")
+
+ override fun videoListParse(response: Response): List