Add Opiatoon (#2730)

This commit is contained in:
Vetle Ledaal 2024-05-02 01:02:55 +00:00 committed by Draff
parent 4fa0b2b320
commit 126a586a21
7 changed files with 52 additions and 0 deletions

View File

@ -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

View File

@ -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)
}
}