parent
dbf7ebd65d
commit
aac159dcbb
|
@ -0,0 +1,18 @@
|
||||||
|
apply plugin: 'com.android.application'
|
||||||
|
apply plugin: 'kotlin-android'
|
||||||
|
|
||||||
|
ext {
|
||||||
|
appName = 'Tachiyomi: Questionable Content'
|
||||||
|
pkgNameSuffix = 'en.questionablecontent'
|
||||||
|
extClass = '.QuestionableContent'
|
||||||
|
extVersionCode = 1
|
||||||
|
libVersion = '1.2'
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compileOnly project(':duktape-stub')
|
||||||
|
compileOnly 'com.google.code.gson:gson:2.8.2'
|
||||||
|
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
||||||
|
}
|
||||||
|
|
||||||
|
apply from: "$rootDir/common.gradle"
|
Binary file not shown.
After Width: | Height: | Size: 3.5 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
Binary file not shown.
After Width: | Height: | Size: 5.1 KiB |
Binary file not shown.
After Width: | Height: | Size: 8.5 KiB |
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
Binary file not shown.
After Width: | Height: | Size: 46 KiB |
|
@ -0,0 +1,86 @@
|
||||||
|
package eu.kanade.tachiyomi.extension.en.questionablecontent
|
||||||
|
|
||||||
|
import eu.kanade.tachiyomi.source.model.*
|
||||||
|
import eu.kanade.tachiyomi.source.online.ParsedHttpSource
|
||||||
|
import okhttp3.Request
|
||||||
|
import org.jsoup.nodes.Document
|
||||||
|
import org.jsoup.nodes.Element
|
||||||
|
import rx.Observable
|
||||||
|
|
||||||
|
class QuestionableContent : ParsedHttpSource() {
|
||||||
|
override val name = "Questionable Content"
|
||||||
|
|
||||||
|
override val versionId = 1
|
||||||
|
|
||||||
|
override val baseUrl = "https://www.questionablecontent.net"
|
||||||
|
|
||||||
|
override val lang = "en"
|
||||||
|
|
||||||
|
override val supportsLatest = false
|
||||||
|
|
||||||
|
override fun fetchPopularManga(page: Int): Observable<MangasPage> {
|
||||||
|
val manga = SManga.create()
|
||||||
|
manga.title = "Questionable Content"
|
||||||
|
manga.artist = "Jeph Jacques"
|
||||||
|
manga.author = "Jeph Jacques"
|
||||||
|
manga.status = SManga.ONGOING
|
||||||
|
manga.url = "/archive.php"
|
||||||
|
manga.description = "An internet comic strip about romance and robots"
|
||||||
|
manga.thumbnail_url = "https://i.ibb.co/ZVL9ncS/qc-teh.png"
|
||||||
|
return Observable.just(MangasPage(arrayListOf(manga), false))
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun fetchSearchManga(page: Int, query: String, filters: FilterList) = Observable.just(MangasPage(arrayListOf(), false))
|
||||||
|
|
||||||
|
override fun fetchMangaDetails(manga: SManga): Observable<SManga> {
|
||||||
|
return Observable.just(manga)
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun chapterListSelector() = """div#container a[href^="view.php?comic="]"""
|
||||||
|
|
||||||
|
override fun chapterFromElement(element: Element): SChapter {
|
||||||
|
val chapter = SChapter.create()
|
||||||
|
val urlregex = """view\.php\?comic=(.*)""".toRegex()
|
||||||
|
val number = urlregex.find(element.attr("href"))!!.groupValues[1]
|
||||||
|
chapter.chapter_number = number.toFloat()
|
||||||
|
chapter.name = element.text()
|
||||||
|
return chapter
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun fetchPageList(chapter: SChapter): Observable<List<Page>> {
|
||||||
|
val pages = mutableListOf<Page>()
|
||||||
|
pages.add(Page(0, "", "$baseUrl/comics/${chapter.chapter_number.toInt()}.png"))
|
||||||
|
return Observable.just(pages)
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun pageListParse(document: Document): List<Page> = throw Exception("Not used")
|
||||||
|
|
||||||
|
override fun imageUrlParse(document: Document) = throw Exception("Not used")
|
||||||
|
|
||||||
|
override fun popularMangaSelector(): String = throw Exception("Not used")
|
||||||
|
|
||||||
|
override fun searchMangaFromElement(element: Element): SManga = throw Exception("Not used")
|
||||||
|
|
||||||
|
override fun searchMangaNextPageSelector(): String? = throw Exception("Not used")
|
||||||
|
|
||||||
|
override fun searchMangaSelector(): String = throw Exception("Not used")
|
||||||
|
|
||||||
|
override fun popularMangaRequest(page: Int): Request = throw Exception("Not used")
|
||||||
|
|
||||||
|
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = throw Exception("Not used")
|
||||||
|
|
||||||
|
override fun popularMangaNextPageSelector(): String? = throw Exception("Not used")
|
||||||
|
|
||||||
|
override fun popularMangaFromElement(element: Element): SManga = throw Exception("Not used")
|
||||||
|
|
||||||
|
override fun mangaDetailsParse(document: Document): SManga = throw Exception("Not used")
|
||||||
|
|
||||||
|
override fun latestUpdatesNextPageSelector(): String? = throw Exception("Not used")
|
||||||
|
|
||||||
|
override fun latestUpdatesFromElement(element: Element): SManga = throw Exception("Not used")
|
||||||
|
|
||||||
|
override fun latestUpdatesRequest(page: Int): Request = throw Exception("Not used")
|
||||||
|
|
||||||
|
override fun latestUpdatesSelector(): String = throw Exception("Not used")
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue