Add Opiatoon (#2730)
This commit is contained in:
parent
4fa0b2b320
commit
126a586a21
|
@ -0,0 +1,10 @@
|
|||
ext {
|
||||
extName = 'Opiatoon'
|
||||
extClass = '.Opiatoon'
|
||||
themePkg = 'madara'
|
||||
baseUrl = 'https://opiatoon.biz'
|
||||
overrideVersionCode = 0
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
Binary file not shown.
After Width: | Height: | Size: 8.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 4.0 KiB |
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
Binary file not shown.
After Width: | Height: | Size: 51 KiB |
|
@ -0,0 +1,42 @@
|
|||
package eu.kanade.tachiyomi.extension.tr.opiatoon
|
||||
|
||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||
import eu.kanade.tachiyomi.source.model.Page
|
||||
import eu.kanade.tachiyomi.source.model.SChapter
|
||||
import eu.kanade.tachiyomi.source.model.SManga
|
||||
import okhttp3.Response
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Locale
|
||||
|
||||
class Opiatoon : Madara(
|
||||
"Opiatoon",
|
||||
"https://opiatoon.biz",
|
||||
"tr",
|
||||
dateFormat = SimpleDateFormat("d MMMM", Locale("tr")),
|
||||
) {
|
||||
override val chapterUrlSelector = "li > a"
|
||||
|
||||
override val useLoadMoreRequest = LoadMoreStrategy.Always
|
||||
override val useNewChapterEndpoint = true
|
||||
|
||||
override fun mangaDetailsParse(response: Response): SManga {
|
||||
if (response.request.url.pathSegments.getOrNull(0) == "giris-yapmalisiniz") {
|
||||
throw Exception("Okumak için WebView üzerinden giriş yapın")
|
||||
}
|
||||
return super.mangaDetailsParse(response)
|
||||
}
|
||||
|
||||
override fun chapterListParse(response: Response): List<SChapter> {
|
||||
if (response.request.url.pathSegments.getOrNull(0) == "giris-yapmalisiniz") {
|
||||
throw Exception("Okumak için WebView üzerinden giriş yapın")
|
||||
}
|
||||
return super.chapterListParse(response)
|
||||
}
|
||||
|
||||
override fun pageListParse(response: Response): List<Page> {
|
||||
if (response.request.url.pathSegments.getOrNull(0) == "giris-yapmalisiniz") {
|
||||
throw Exception("Okumak için WebView üzerinden giriş yapın")
|
||||
}
|
||||
return super.pageListParse(response)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue