parent
02908dfdf7
commit
5533dae52f
|
@ -5,7 +5,7 @@ ext {
|
||||||
appName = 'Tachiyomi: Mangazuki'
|
appName = 'Tachiyomi: Mangazuki'
|
||||||
pkgNameSuffix = 'en.mangazuki'
|
pkgNameSuffix = 'en.mangazuki'
|
||||||
extClass = '.Mangazuki'
|
extClass = '.Mangazuki'
|
||||||
extVersionCode = 4
|
extVersionCode = 5
|
||||||
libVersion = '1.0'
|
libVersion = '1.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,16 +1,21 @@
|
||||||
package eu.kanade.tachiyomi.extension.en.mangazuki
|
package eu.kanade.tachiyomi.extension.en.mangazuki
|
||||||
|
|
||||||
import eu.kanade.tachiyomi.network.GET
|
import eu.kanade.tachiyomi.network.GET
|
||||||
import eu.kanade.tachiyomi.source.model.*
|
import eu.kanade.tachiyomi.source.model.FilterList
|
||||||
|
import eu.kanade.tachiyomi.source.model.MangasPage
|
||||||
|
import eu.kanade.tachiyomi.source.model.Page
|
||||||
|
import eu.kanade.tachiyomi.source.model.SChapter
|
||||||
|
import eu.kanade.tachiyomi.source.model.SManga
|
||||||
import eu.kanade.tachiyomi.source.online.ParsedHttpSource
|
import eu.kanade.tachiyomi.source.online.ParsedHttpSource
|
||||||
import okhttp3.HttpUrl
|
|
||||||
import okhttp3.Request
|
import okhttp3.Request
|
||||||
import org.jsoup.nodes.Document
|
import org.jsoup.nodes.Document
|
||||||
import org.jsoup.nodes.Element
|
import org.jsoup.nodes.Element
|
||||||
import org.jsoup.select.Elements
|
import org.jsoup.select.Elements
|
||||||
|
import rx.Observable
|
||||||
import java.text.ParseException
|
import java.text.ParseException
|
||||||
import java.text.SimpleDateFormat
|
import java.text.SimpleDateFormat
|
||||||
import java.util.*
|
import java.util.Date
|
||||||
|
import java.util.Locale
|
||||||
|
|
||||||
class Mangazuki : ParsedHttpSource() {
|
class Mangazuki : ParsedHttpSource() {
|
||||||
|
|
||||||
|
@ -58,12 +63,12 @@ class Mangazuki : ParsedHttpSource() {
|
||||||
|
|
||||||
override fun latestUpdatesNextPageSelector() = popularMangaNextPageSelector()
|
override fun latestUpdatesNextPageSelector() = popularMangaNextPageSelector()
|
||||||
|
|
||||||
|
// Search doesn't work on the site
|
||||||
|
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> = Observable.empty()
|
||||||
|
|
||||||
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = throw Exception("Not used")
|
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = throw Exception("Not used")
|
||||||
|
|
||||||
override fun searchMangaSelector() = throw Exception("Not used")
|
override fun searchMangaSelector() = throw Exception("Not used")
|
||||||
|
|
||||||
override fun searchMangaFromElement(element: Element): SManga = throw Exception("Not used")
|
override fun searchMangaFromElement(element: Element): SManga = throw Exception("Not used")
|
||||||
|
|
||||||
override fun searchMangaNextPageSelector() = throw Exception("Not used")
|
override fun searchMangaNextPageSelector() = throw Exception("Not used")
|
||||||
|
|
||||||
override fun mangaDetailsParse(document: Document): SManga {
|
override fun mangaDetailsParse(document: Document): SManga {
|
||||||
|
|
|
@ -32,7 +32,7 @@ class QuestionableContent : ParsedHttpSource() {
|
||||||
return Observable.just(MangasPage(arrayListOf(manga), false))
|
return Observable.just(MangasPage(arrayListOf(manga), false))
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun fetchSearchManga(page: Int, query: String, filters: FilterList) = Observable.just(MangasPage(arrayListOf(), false))
|
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> = Observable.empty()
|
||||||
|
|
||||||
override fun fetchMangaDetails(manga: SManga) = Observable.just(manga)
|
override fun fetchMangaDetails(manga: SManga) = Observable.just(manga)
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ class Xkcd : ParsedHttpSource() {
|
||||||
return Observable.just(MangasPage(arrayListOf(manga), false))
|
return Observable.just(MangasPage(arrayListOf(manga), false))
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun fetchSearchManga(page: Int, query: String, filters: FilterList) = Observable.just(MangasPage(arrayListOf(), false))
|
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> = Observable.empty()
|
||||||
|
|
||||||
override fun fetchMangaDetails(manga: SManga): Observable<SManga> {
|
override fun fetchMangaDetails(manga: SManga): Observable<SManga> {
|
||||||
return Observable.just(manga)
|
return Observable.just(manga)
|
||||||
|
|
Loading…
Reference in New Issue