Change baseUrl from g.e-hentai.org -> e-hentai.org
This commit is contained in:
parent
0adac4217e
commit
c30aa710f3
@ -38,7 +38,7 @@ class EHentai(override val id: Int,
|
|||||||
get() = if(exh)
|
get() = if(exh)
|
||||||
"$schema://exhentai.org"
|
"$schema://exhentai.org"
|
||||||
else
|
else
|
||||||
"http://g.e-hentai.org"
|
"http://e-hentai.org"
|
||||||
|
|
||||||
override val lang = "all"
|
override val lang = "all"
|
||||||
override val supportsLatest = true
|
override val supportsLatest = true
|
||||||
|
@ -20,7 +20,7 @@ class GalleryAdder {
|
|||||||
|
|
||||||
fun addGallery(url: String, fav: Boolean = false): Manga {
|
fun addGallery(url: String, fav: Boolean = false): Manga {
|
||||||
val source = when(URL(url).host) {
|
val source = when(URL(url).host) {
|
||||||
"g.e-hentai.org" -> 1
|
"g.e-hentai.org", "e-hentai.org" -> 1
|
||||||
"exhentai.org" -> 2
|
"exhentai.org" -> 2
|
||||||
else -> throw MalformedURLException("Not a valid gallery URL!")
|
else -> throw MalformedURLException("Not a valid gallery URL!")
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
app:layout_constraintRight_toRightOf="@+id/textView"
|
app:layout_constraintRight_toRightOf="@+id/textView"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/btn_add_galleries"
|
app:layout_constraintBottom_toTopOf="@+id/btn_add_galleries"
|
||||||
android:layout_marginBottom="8dp"
|
android:layout_marginBottom="8dp"
|
||||||
android:hint="Example:\n\nhttp://e-hentai.org/g/12345/1a2b3c4e\nhttp://e-hentai.org/g/67890/6f7g8h9i\nhttp://exhentai.org/g/13579/1a3b5c7e\nhttp://exhentai.org/g/24680/2f4g6h8i\n" />
|
android:hint="Example:\n\nhttp://e-hentai.org/g/12345/1a2b3c4e\nhttp://g.e-hentai.org/g/67890/6f7g8h9i\nhttp://exhentai.org/g/13579/1a3b5c7e\nhttps://exhentai.org/g/24680/2f4g6h8i\n" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:text="Add Galleries"
|
android:text="Add Galleries"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user