|
@ -2,7 +2,7 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<application android:icon="@mipmap/ic_launcher">
|
||||
<activity
|
||||
android:name=".all.ninenineninehentai.NineNineNineHentaiUrlActivity"
|
||||
android:name=".all.ninenineninehentai.AnimeHUrlActivity"
|
||||
android:excludeFromRecents="true"
|
||||
android:exported="true"
|
||||
android:theme="@android:style/Theme.NoDisplay">
|
||||
|
@ -12,7 +12,7 @@
|
|||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
|
||||
<data android:host="999hentai.net"/>
|
||||
<data android:host="animeh.to"/>
|
||||
<data android:scheme="https"/>
|
||||
<data android:pathPattern="/hchapter/..*"/>
|
||||
</intent-filter>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ext {
|
||||
extName = '999Hentai'
|
||||
extClass = '.NineNineNineHentaiFactory'
|
||||
extVersionCode = 6
|
||||
extName = 'AnimeH'
|
||||
extClass = '.AnimeHFactory'
|
||||
extVersionCode = 7
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 9.3 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 47 KiB |
|
@ -35,16 +35,16 @@ import uy.kohesive.injekt.injectLazy
|
|||
import java.text.SimpleDateFormat
|
||||
import java.util.Locale
|
||||
|
||||
open class NineNineNineHentai(
|
||||
open class AnimeH(
|
||||
final override val lang: String,
|
||||
private val siteLang: String = lang,
|
||||
) : HttpSource(), ConfigurableSource {
|
||||
|
||||
override val name = "999Hentai"
|
||||
override val name = "AnimeH"
|
||||
|
||||
override val baseUrl = "https://999hentai.net"
|
||||
override val baseUrl = "https://animeh.to"
|
||||
|
||||
private val apiUrl = "https://hapi.999hentai.net/api"
|
||||
private val apiUrl = "https://api.animeh.to/api"
|
||||
|
||||
override val supportsLatest = true
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package eu.kanade.tachiyomi.extension.all.ninenineninehentai
|
||||
|
||||
import eu.kanade.tachiyomi.source.SourceFactory
|
||||
|
||||
class AnimeHFactory : SourceFactory {
|
||||
override fun createSources() = listOf(
|
||||
AnimeHAll(),
|
||||
AnimeHEn(),
|
||||
AnimeHJa(),
|
||||
AnimeHZh(),
|
||||
AnimeHEs(),
|
||||
)
|
||||
}
|
||||
|
||||
class AnimeHAll : AnimeH("all") { override val id = 5098173700376022513 }
|
||||
class AnimeHEn : AnimeH("en") { override val id = 4370122548313941497 }
|
||||
class AnimeHJa : AnimeH("ja", "jp") { override val id = 8948948503520127713 }
|
||||
class AnimeHZh : AnimeH("zh", "cn") { override val id = 3874510362699054213 }
|
||||
class AnimeHEs : AnimeH("es") { override val id = 2790053117909987291 }
|
|
@ -7,7 +7,7 @@ import android.os.Bundle
|
|||
import android.util.Log
|
||||
import kotlin.system.exitProcess
|
||||
|
||||
class NineNineNineHentaiUrlActivity : Activity() {
|
||||
class AnimeHUrlActivity : Activity() {
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
val pathSegments = intent?.data?.pathSegments
|
||||
|
@ -15,17 +15,17 @@ class NineNineNineHentaiUrlActivity : Activity() {
|
|||
val id = pathSegments[1]
|
||||
val mainIntent = Intent().apply {
|
||||
action = "eu.kanade.tachiyomi.SEARCH"
|
||||
putExtra("query", "${NineNineNineHentai.SEARCH_PREFIX}$id")
|
||||
putExtra("query", "${AnimeH.SEARCH_PREFIX}$id")
|
||||
putExtra("filter", packageName)
|
||||
}
|
||||
|
||||
try {
|
||||
startActivity(mainIntent)
|
||||
} catch (e: ActivityNotFoundException) {
|
||||
Log.e("999HentaiUrlActivity", e.toString())
|
||||
Log.e("AnimeHUrlActivity", e.toString())
|
||||
}
|
||||
} else {
|
||||
Log.e("999HentaiUrlActivity", "could not parse uri from intent $intent")
|
||||
Log.e("AnimeHUrlActivity", "could not parse uri from intent $intent")
|
||||
}
|
||||
|
||||
finish()
|
|
@ -1,13 +0,0 @@
|
|||
package eu.kanade.tachiyomi.extension.all.ninenineninehentai
|
||||
|
||||
import eu.kanade.tachiyomi.source.SourceFactory
|
||||
|
||||
class NineNineNineHentaiFactory : SourceFactory {
|
||||
override fun createSources() = listOf(
|
||||
NineNineNineHentai("all"),
|
||||
NineNineNineHentai("en"),
|
||||
NineNineNineHentai("ja", "jp"),
|
||||
NineNineNineHentai("zh", "cn"),
|
||||
NineNineNineHentai("es"),
|
||||
)
|
||||
}
|