Initial commit
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 6.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.0 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 9.9 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 34 KiB |
BIN
multisrc/overrides/madara/araznovel/res/web_hi_res_512.png
Normal file
BIN
multisrc/overrides/madara/araznovel/res/web_hi_res_512.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 286 KiB |
31
multisrc/overrides/madara/araznovel/src/ArazNovel.kt
Normal file
31
multisrc/overrides/madara/araznovel/src/ArazNovel.kt
Normal file
@@ -0,0 +1,31 @@
|
||||
package eu.kanade.tachiyomi.extension.tr.araznovel
|
||||
|
||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||
import eu.kanade.tachiyomi.source.model.SChapter
|
||||
import eu.kanade.tachiyomi.util.asJsoup
|
||||
import okhttp3.Response
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Locale
|
||||
|
||||
class ArazNovel : Madara("ArazNovel", "https://www.araznovel.com", "tr", SimpleDateFormat("dd/MM/yyyy", Locale.getDefault())) {
|
||||
|
||||
override fun chapterListParse(response: Response): List<SChapter> {
|
||||
val document = response.asJsoup()
|
||||
val mangaId = document.select("div#manga-chapters-holder").attr("data-id")
|
||||
|
||||
val xhrRequest = oldXhrChaptersRequest(mangaId)
|
||||
val xhrResponse = client.newCall(xhrRequest).execute()
|
||||
|
||||
return xhrResponse.asJsoup().let { xhrDocument ->
|
||||
xhrDocument.select("li.parent").let { elements ->
|
||||
if (!elements.isNullOrEmpty()) {
|
||||
elements.reversed()
|
||||
.map { volumeElement -> volumeElement.select(chapterListSelector()).map { chapterFromElement(it) } }
|
||||
.flatten()
|
||||
} else {
|
||||
xhrDocument.select(chapterListSelector()).map { chapterFromElement(it) }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user