parent
864f0d370c
commit
dfbd58920a
|
@ -5,8 +5,8 @@ ext {
|
||||||
appName = 'Tachiyomi: RawQQ'
|
appName = 'Tachiyomi: RawQQ'
|
||||||
pkgNameSuffix = 'ja.rawqq'
|
pkgNameSuffix = 'ja.rawqq'
|
||||||
extClass = '.Rawqq'
|
extClass = '.Rawqq'
|
||||||
extVersionCode = 1
|
extVersionCode = 2
|
||||||
extVersionSuffix = 0
|
extVersionSuffix = 1
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ package eu.kanade.tachiyomi.extension.ja.rawqq
|
||||||
import eu.kanade.tachiyomi.network.GET
|
import eu.kanade.tachiyomi.network.GET
|
||||||
import eu.kanade.tachiyomi.source.model.*
|
import eu.kanade.tachiyomi.source.model.*
|
||||||
import eu.kanade.tachiyomi.source.online.ParsedHttpSource
|
import eu.kanade.tachiyomi.source.online.ParsedHttpSource
|
||||||
|
import okhttp3.Headers
|
||||||
import okhttp3.HttpUrl
|
import okhttp3.HttpUrl
|
||||||
import okhttp3.Request
|
import okhttp3.Request
|
||||||
import org.jsoup.nodes.Document
|
import org.jsoup.nodes.Document
|
||||||
|
@ -162,6 +163,16 @@ class Rawqq : ParsedHttpSource() {
|
||||||
|
|
||||||
override fun imageUrlParse(document: Document) = ""
|
override fun imageUrlParse(document: Document) = ""
|
||||||
|
|
||||||
|
override fun imageRequest(page: Page): Request {
|
||||||
|
if (page.imageUrl!!.contains("lhscanlation.club")) {
|
||||||
|
val imgHeader = Headers.Builder().apply {
|
||||||
|
add("Referer", "https://lhscan.net")
|
||||||
|
}.build()
|
||||||
|
return GET(page.imageUrl!!, imgHeader)
|
||||||
|
}
|
||||||
|
return GET(page.imageUrl!!)
|
||||||
|
}
|
||||||
|
|
||||||
private class TextField(name: String, val key: String) : Filter.Text(name)
|
private class TextField(name: String, val key: String) : Filter.Text(name)
|
||||||
private class Status : Filter.Select<String>("Status", arrayOf("Any", "Completed", "Ongoing"))
|
private class Status : Filter.Select<String>("Status", arrayOf("Any", "Completed", "Ongoing"))
|
||||||
private class GenreList(genres: List<Genre>) : Filter.Group<Genre>("Genre", genres)
|
private class GenreList(genres: List<Genre>) : Filter.Group<Genre>("Genre", genres)
|
||||||
|
|
|
@ -5,8 +5,8 @@ ext {
|
||||||
appName = 'Tachiyomi: RawLH'
|
appName = 'Tachiyomi: RawLH'
|
||||||
pkgNameSuffix = 'ja.rawlh'
|
pkgNameSuffix = 'ja.rawlh'
|
||||||
extClass = '.Rawlh'
|
extClass = '.Rawlh'
|
||||||
extVersionCode = 4
|
extVersionCode = 5
|
||||||
extVersionSuffix = 2
|
extVersionSuffix = 3
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ package eu.kanade.tachiyomi.extension.ja.rawlh
|
||||||
import eu.kanade.tachiyomi.network.GET
|
import eu.kanade.tachiyomi.network.GET
|
||||||
import eu.kanade.tachiyomi.source.model.*
|
import eu.kanade.tachiyomi.source.model.*
|
||||||
import eu.kanade.tachiyomi.source.online.ParsedHttpSource
|
import eu.kanade.tachiyomi.source.online.ParsedHttpSource
|
||||||
|
import okhttp3.Headers
|
||||||
import okhttp3.HttpUrl
|
import okhttp3.HttpUrl
|
||||||
import okhttp3.Request
|
import okhttp3.Request
|
||||||
import org.jsoup.nodes.Document
|
import org.jsoup.nodes.Document
|
||||||
|
@ -159,6 +160,13 @@ class Rawlh : ParsedHttpSource() {
|
||||||
|
|
||||||
override fun imageUrlParse(document: Document) = ""
|
override fun imageUrlParse(document: Document) = ""
|
||||||
|
|
||||||
|
override fun imageRequest(page: Page): Request {
|
||||||
|
val imgHeader = Headers.Builder().apply {
|
||||||
|
add("Referer", baseUrl)
|
||||||
|
}.build()
|
||||||
|
return GET(page.imageUrl!!, imgHeader)
|
||||||
|
}
|
||||||
|
|
||||||
private class TextField(name: String, val key: String) : Filter.Text(name)
|
private class TextField(name: String, val key: String) : Filter.Text(name)
|
||||||
private class Status : Filter.Select<String>("Status", arrayOf("Any", "Completed", "Ongoing"))
|
private class Status : Filter.Select<String>("Status", arrayOf("Any", "Completed", "Ongoing"))
|
||||||
private class GenreList(genres: List<Genre>) : Filter.Group<Genre>("Genre", genres)
|
private class GenreList(genres: List<Genre>) : Filter.Group<Genre>("Genre", genres)
|
||||||
|
|
Loading…
Reference in New Issue